in reply to Accessing HTTPS Sites

Works fine for me.

Exactly what is the error that you get?
Is ssleay32.dll accessible via your PATH variable?

Replies are listed 'Best First'.
Re^2: Accessing HTTPS Sites
by onlyakhila (Initiate) on Jul 16, 2007 at 15:59 UTC
    I am having a similar problem. When i run the program below I get the error: Error: 500 Connect failed: connect: Unknown error; Also how can i change the $ua->agent('Mozilla/5.0'); to take the microsoft xp browser?
    #!/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; }
    Thank you Akhila