Re: can't get authorization
Fabio Marzocca <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <[email protected]> |
On 10/24/05, Fabio Marzocca <[email protected]> wrote: > > Firefox sends this cookie at the very first GET (see the last line): > > GET /alice/portal/service/login/entry.do?service=sms&from=alice&login=...........&password=.... > HTTP/1.1 > Host: www.rossoalice.virgilio.it > User-Agent: Mozilla/5.0 (X11; U; Linux i686; it-IT; rv:1.7.12) > Gecko/20051010 Firefox/1.0.4 (Ubuntu package 1.0.7) > Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 > Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3 > Accept-Encoding: gzip,deflate > Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 > Keep-Alive: 300 > Connection: keep-alive > Cookie: kp=82.57.176.190.1129216047341631 > I have investigated some more on this, and I have discovered that the servers sends a JSESSIONID cookie to the browser (how to handle it with LWP?). More, I need to add a special cookie to my $ua->get(), but I don't know how to manually add a cookie to a request..