Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

LWP::UserAgent connection problem as CGI

by bassplayer (Monsignor)
on Mar 03, 2004 at 17:58 UTC ( #333632=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       my $qurl = 'legitmate url (tested -- fails for many)';
       my $uasnd = new HTTP::Request ('GET', $qurl);
    ...
       print STDERR "RES:  ".Dumper( $res )."\n";
       my $code= $res->code;  # RETURNS 500
       my $content= $res->content;  # NADA
    
  2. or download this
    RES:  $VAR1 = bless( {
            '_content' => '',
    ...
                                 }, 'HTTP::Request' )
          }, 'HTTP::Response' );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2016-10-01 19:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (7 votes). Check out past polls.