1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    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