perl with proxy

Discussion in 'Perl' started by best_praveen, Jan 7, 2009.

  1. best_praveen

    best_praveen New Member

    Joined:
    Jan 7, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Could any help me to access web site by LWP module in perl , through proxy
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    Code:
    use LWP::UserAgent;
    $ua = LWP::UserAgent->new;
    $ua->agent("MyApp/0.1 ");
    $ua->proxy(['http','ftp'] => 'http://proxy.mycompany.com:1080');
    
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice