Re: LWP and cookies
Gisle Aas <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <[email protected]> |
The Saltydog <[email protected]> writes: > I am writing an application with LWP::UserAgent. From the web I can > authenticate on a form and then post some data on a second form. > >From perl, the authentication is working fine, but as soon as I get > next form url, I receive from the server a "session timeout" message. > In my program I am using memory-cookies: > > my $ua = LWP::UserAgent->new(); # Create user agent object > $ua->cookie_jar({}); # Cookie handling object > $ua->agent('Mozilla/5.0'); # User agent property Which should work fine. I suggest you try a network sniffer program (like ethereal) to figure out what is different when the brower talks to the server than when LWP does. Regards, Gisle