Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Submit from browser works but LWP does notby ikegami (Patriarch) |
on Jul 12, 2005 at 20:12 UTC ( [id://474377]=note: print w/replies, xml ) | Need Help?? |
Ignoring the "!pu`" and ignoring the missing blank lines in both outputs, the differences are: script: Connection: keep-alive script: Content-Length: 336 script: Cookie: JSESSIONID=1545454aae552555a48773717374620 script: Cookie2: $Version="1" script: [nothing] There are differences in the order of the headers, but that shouldn't matter. You might have an easier time using WWW::Mechanize. It should handle just about everything for you. There are two downsides: 1) You have to install it, and 2) it won't help if the page requires JavaScript to submit.
In Section
Seekers of Perl Wisdom
|
|