> I am having LWP::UserAgent fetch information from a site that uses > Javascript to write a cookie like this: > > document.cookie = "jscript=1; path=/;"; > > Is there any way to tell my User Agent to add that cookie to > the cookie > jar?
I had to do something similar, and rather than mess with the cookie jar, I did this: $r->header('Host' => 'www.hzcu.org', 'Keep-Alive' => '300', 'Connection' => 'keep-alive', 'Referer' => 'https://www.hzcu.org/onlineserv/HB/Signon.cgi', 'Cookie' => 'signonValid=TRUE; path=/'); $r is an HTTP::Request object. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>