Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: LWP - 500 Internal Error

by Anonymous Monk
on Sep 01, 2009 at 12:29 UTC ( #792627=note: print w/ replies, xml ) Need Help??

Comment on Re: LWP - 500 Internal Error
Replies are listed 'Best First'.
Re^2: LWP - 500 Internal Error
by oalvi (Initiate) on Sep 01, 2009 at 13:25 UTC
    Hi and Thank for the link, Was my thread, vry interesting too - but i didn't think I could start from there anew. Anyway, I tried adding the sfprint debug, doesn't work for me yet.
    # !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

      200 OK means there was no error
        Hi,

        yes, that particular link worked fine, 200 OK. What I meant to ask about was the error

        Err : (9)(Bad file descriptor)(0)()

        as the output of

        my $err = sprintf "(%d)(%s)(%d)(%s)\n", $!,$!,$^E,$^E; print "Err : $err \n";

        I was expecting as mentioned in the link you sent that this particular part of the code would work like a sniffer and decipher more information as to why it fails

        Really appreciate the feedback

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://792627]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2015-07-28 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (259 votes), past polls