Re: LWP and cookies
Gisle Aas <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <[email protected]> |
The Saltydog <[email protected]> writes: > On 8/29/05, The Saltydog <[email protected]> wrote: > > > > From ethereal's analysis I can see that cookies are correctly sent. > > The difference I can notice is on a "Connection:" field which from the > > web is: keep-alive, while from LWP is: close... > > What does it mean? > > > > > I have added this, just before the $ua->get : > > $ua->default_header('Connection' => "Keep-Alive"); > > but now with ethereal I have: > > Connection: Keep-Alive, close > > The "close" is still there.. Try to set up the $ua with: $ua = LWP::UserAgent->new(keep_alive => 1); Regards, Gisle