Help for this page

Select Code to Download


  1. or download this
     
    my $ua = new LWP::UserAgent(); 
    my $req = new HTTP::Request (GET => $uri);        
    my $request = $ua->request ($req);
    
  2. or download this
    500 Can't connect to no.such.server.in.my.lan:80 (Bad hostname)
    
  3. or download this
    my $ua=LWP::UserAgent->new(ssl_opts => { verify_hostname => 0 });
    
  4. or download this
    Use Data::Dumper; 
    print Dumper ($request);
    
  5. or download this
      my $ua = new LWP::UserAgent(agent =>"myagent");
    
  6. or download this
      my $ua = new LWP::UserAgent(agent =>"Mozilla/5.0 (Windows NT 5.1; rv
    +:51.0) Gecko/20100101 Firefox/51.0");