[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Cookie rejected, domain doesn't match request.



Scott,

BTW, thanks so much for delivering this great tool; I've been saved twice by
it.


Is this sufficient information for you to duplicate this issue?
-------------------------------------------------------
http_use_cookies(*on);                                           
http_Set_100_timeout(5);                                         
                                                                 
wkURL = 'http://happyvax.ezrez.com/adm/agent_tools/login.cfm?custid=80443';

XMLdataF = %trim('<?xml version="1.0" encoding="utf-8"?> ';

                                                       
rc = http_url_post(%trim(wkURL):                       
                   %addr(XMLdataF):                    
                   %len(%trim(XMLdataF)):              
                   RespFile:                           
                   HTTP_TIMEOUT:                       
                   HTTP_USERAGENT:                     
                  'text/xml; charset=utf-8');          
-------------------------------------------------------
BTW, after correcting the URL to this I found it works:

wkHOST = 'http://happyvax.ezrez.com';                   
wkPATH = '/service/xml/bookings_v2.cfm';                
wkOPTS = '?username=' + %trim(EzRezUSR) +               
         '&password=' + %trim(EzRezPWD)  +              
         '&custid='   + %char(EQbkgn);                  
                                                        
wkURL  = %trim(wkHOST) + %trim(wkPATH) + %trim(wkOPTS);




-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Tuesday, October 07, 2008 4:25 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Cookie rejected, domain doesn't match request.

Hi Tim,

> I'm getting "cookie rejected, domain doesn't match request.",
> with the cookie attribute: "cookie attr domain=.happyvax.ezrez.com"
> 

I think this might be a bug in HTTPAPI...   unfortunately, I don't have 
access to a site that sends a cookie domain in this manner, so I can't 
test my changes to the code.

If I provided you with an updated copy of HTTPAPI, would you test it for me?
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------