Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

lwp proxy problem

by dannoura (Pilgrim)
on Apr 27, 2004 at 15:36 UTC ( [id://348540]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use LWP::Simple qw(&getstore $ua);
    
    $ua->proxy(http => 'http://www.tau.ac.il/tau.pac');
    ...
    my $url='http://www.yahoo.com';
    my $file='test.html';
    print "success" if (getstore($url, $file));
    
  2. or download this
    use LWP::UserAgent;
    
    open WFH, ">test.html" or die($!); 
    ...
        } else {
        die $response->status_line;
        }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found