Re: LWP and cookies

Gedanken <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
On Mon, 29 Aug 2005, The Saltydog wrote:

I will guess that a cookie is being set by javascript, which would explai 
nwhy it fails in lwp but works in a browser.  If you read through the 
source code and find what they set, or find it from a header sniffer like 
httpliveheaders plugin for mozilla, you can set them manually.

$agent->cookie_jar()->set_cookie(1, "cookieMissing", "valueI 
snaggedOffPageManually", "/", 
"foo.com");

matt

 On 29 Aug 2005 03:38:34 -0700, Gisle Aas <[email protected]> wrote:
 > Try to set up the $ua with:
 > 
 >   $ua = LWP::UserAgent->new(keep_alive => 1);
 
 
 Thanks! Now the connection is Keep-Alive, as from the web.
 Unfortunately, still doesn't work, so I will investigate more..
 

-- 
gedanken
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.