in reply to Re: LWP - 500 Internal Error
in thread LWP - 500 Internal Error
# !C:\Perl\bin use strict; use warnings; use LWP::UserAgent; @ARGV = qw[ http://www.eserve.com.sa/ ]; my $url = shift or die "URL expected\n"; my $useragent = LWP::UserAgent->new; $useragent->proxy(['http', 'ftp','https'], 'http://192.168.5.5:8080/') +; $useragent -> timeout( 20 ); my $request = HTTP::Request->new( GET => $url ); my $response = $useragent->request($request); my $err = sprintf "(%d)(%s)(%d)(%s)\n", $!,$!,$^E,$^E; print $useragent->proxy('http'),"\n"; print $response->status_line, "\n"; print "Err : $err \n";
I get this error
http://192.168.5.5:8080/ 200 OK Err : (9)(Bad file descriptor)(0)()
Seems it ran everything alrights, something simple here I must be missing
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: LWP - 500 Internal Error
by Anonymous Monk on Sep 01, 2009 at 13:39 UTC | |
by Anonymous Monk on Sep 01, 2009 at 19:35 UTC | |
by Anonymous Monk on Sep 01, 2009 at 21:41 UTC | |
by oalvi (Novice) on Sep 02, 2009 at 07:41 UTC | |
by Anonymous Monk on Sep 02, 2009 at 07:57 UTC | |
|