Re: [Http-webtest-general] Redirects do not send cookies
Brought to you by:
m_ilya,
richardanderson
From: Ilya M. <il...@ip...> - 2003-07-03 15:52:05
|
>>>>> "WM" == William McKee <wi...@kn...> writes: WM> Actually, looking at my server files (I'm using CGI::Session::File to WM> handle session variables and it uses cookies to track the session id), WM> the received cookie is the one that is received *after* the redirect. If WM> I were to trace the code to find out if webtest is getting the cookie WM> from the webserver, what subroutine should I be watching? You can try to add debug logging in HTTP::WebTest::Cookies in sub extract_cookies() which is called when LWP tries to extract cookies from HTTP headers of HTTP response and store them in cookie jar and in sub add_cookie_header() which is called when LWP reads cookie jar and adds cookie HTTP headers in HTTP response. BTW what is hostname of your server? IIRC LWP used to *not* send cookies for servers which do not have at least two dots in their hostname. I.e. it will not send cookies for server hostnames like localhost. -- Ilya Martynov, il...@ip... CTO IPonWEB (UK) Ltd Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net Personal website - http://martynov.org |