suhijo has asked for the wisdom of the Perl Monks concerning the following question:
but my response is like :use Data::Dumper;\n use LWP::UserAgent; use Apache2::Connection (); my $ua = LWP::UserAgent->new; $ua->agent("Mozilla 12.50 "); $ua->timeout("3"); $a=$ua->post("http://192.168.0.164/dologin.htm","P2=>pass1"); print Dumper($a);
if i use wget it happen exactlly the same behavior....so i try with telnet and it works!! But i dont know whats going on with perl, i did some sniff arround packet and there are some diferences between packets from perl and packtes from a mozilla brwowser, for example: Connnection parameter with perl is :500 read timeout
connection parameter with any browser is:Connection: keep-alive, TE, close\r\n
So any clue of what could be? im kinda stuck here :(Connection: keep-alive\r\n
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Request POST with LWP
by kcott (Archbishop) on Nov 03, 2010 at 23:40 UTC | |
|
Re: Request POST with LWP
by iza (Monk) on Nov 04, 2010 at 10:27 UTC | |
|
Re: Request POST with LWP
by aquarium (Curate) on Nov 03, 2010 at 23:38 UTC | |
|
Re: Request POST with LWP
by suhijo (Novice) on Nov 04, 2010 at 18:05 UTC | |
by iza (Monk) on Nov 05, 2010 at 09:14 UTC |