zby has asked for the wisdom of the Perl Monks concerning the following question:
and here is the error stream output (^M where originally is a <CR>):use LWP::Debug 'level'; level('+'); use LWP::UserAgent; $pm = 'www.perlmonks.org'; $ua = LWP::UserAgent->new(); $ua->agent("MyApp/0.1 "); $ua->proxy('http', 'http://wawprx01.waw.nestle.pl'); my $res = $ua->get("http://$pm"); print $res->status_line, "\n";
I've removed the '#' in the LWP::Protocol::http.pm line 207 to print the literary request. Has anybody a clue what's wrong?LWP::UserAgent::new: () LWP::UserAgent::proxy: http http://wawprx01.waw.nestle.pl LWP::UserAgent::request: () LWP::UserAgent::send_request: GET http://www.perlmonks.org LWP::UserAgent::_need_proxy: Proxied to http://wawprx01.waw.nestle.pl LWP::Protocol::http::request: () LWP::Protocol::http::request: GET http://www.perlmonks.org HTTP/1.1^M TE: deflate,gzip;q=0.3^M Connection: TE, close^M Host: www.perlmonks.org^M User-Agent: MyApp/0.1 libwww-perl/5.68^M ^M LWP::Protocol::collect: read 87 bytes LWP::UserAgent::request: Simple response: Bad Request
update (broquaint): fixed typo in subject (s/Proxie$/Proxy/)
|
|---|