onlyakhila has asked for the wisdom of the Perl Monks concerning the following question:
Thank you Akhila#!/usr/local/bin/perl $ENV{"HTTP_PROXY"} = "http://http-proxy:xx"; $ENV{"HTTP_PROXY_USER"} = "xxxx"; $ENV{"HTTP_PROXY_PASS"} = "xxxx"; use LWP::UserAgent; use XML::RSS; $ua = LWP::UserAgent->new; $req = HTTP::Request->new(GET=> 'https://www.paypal.com/'); $ua->env_proxy(); $ua->agent('Mozilla/5.0'); $res = $ua->request($req); if ($res->is_success) { #print ($res->content); printf "fetched %d bytes\n", length($res->content); } else { print "Error: " . $res->code . " " . $res->message; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl https parser
by derby (Abbot) on Jul 16, 2007 at 16:47 UTC | |
|
Re: Perl https parser
by almut (Canon) on Jul 16, 2007 at 18:55 UTC | |
|
Re: Perl https parser
by EvanK (Chaplain) on Jul 16, 2007 at 17:48 UTC | |
by onlyakhila (Initiate) on Jul 16, 2007 at 20:03 UTC | |
|
Re: Perl https parser
by grashoper (Monk) on Jul 18, 2007 at 22:10 UTC |