![]() |
|
Think about Loose Coupling | |
PerlMonks |
LWP::UserAgent doesn't see cookies in headerby zeno (Friar) |
on Mar 14, 2002 at 15:48 UTC ( [id://151709]=perlquestion: print w/replies, xml ) | Need Help?? |
zeno has asked for the wisdom of the Perl Monks concerning the following question: My program needs to enter a web page, get a session number (which is stored in a cookie), and then go to a subsequent page on the same site using that cookie to maintain the session. I thought this would be simple, using HTTP::Cookies to create a cookie jar. After beating my head against it for a while, I realized that the site was not passing me any set-cookies in the header. But when I visit the page from a browser, and I tell the browser to prompt me if a cookie arrives, the browser tells me the site is sending me cookies. I even telneted to the site on port 80, and got the same header information with no set-cookies I distilled the code down to the following. I check two sites, the one which doesn't send me cookies in the header (infojobs) and one which does (msn). Has anyone seen this before? How are they sending me cookies if they aren't in the header?
Back to
Seekers of Perl Wisdom
|
|