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

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



Scott,

That was the thing, when I first tried to access the site I found that I was
getting a 302 redirect to the login panel.  Then when I tried to use the
WEBFORM procedure to set the user name and password, I got the "invalid
domain" error.

Based on your comments below about whether you are "allowed to use the URL",
which makes me think that there may be some authority required to the site
before the cookie is considered valid.  The challenge is that during the
initial debug process it appeared that the cookie domain error was at fault,
when the actual issue was that I needed to provide the user name and
password as a part of the URL (as I ended up doing).

Yes, when I corrected the URL to
http://happyvax.ezrez.com/service/xml/bookings_v2.cfm?username=XXXXXXX&passw
ord=YYYYYYYYY&custid=80449
the cookie domain error went away (problem solved).

-- so in summary, I would say that the cookie domain error is resolved by
providing the corrected URL.


Thanks much for your assistance.

Regards,
Hawk


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

Hi Tim,

I don't think it's sufficient information...?  For one thing, I don't 
have a userid/password for that site!  For another, I don't know whether 
I'm allowed to use that URL.

I have no idea what you mean by "after correcting the URL to this I 
found it works"?   Do you mean that you were providing the wrong URL to 
begin with, so upon fixing the URL the problem was solved?  or... what 
do you mean?


Tim Hawkins wrote:
> 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
> -----------------------------------------------------------------------

-----------------------------------------------------------------------
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
-----------------------------------------------------------------------