**********************************************************************
This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
************************************************************************
This sometimes works.
-----Original Message-----
From: John Mannix [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 09, 2000 2:28 PM
To: [EMAIL PROTECTED]
Subject: HTTPS proxy setup

I'm trying to get lib-www-perl to post some form data to a secure server via a proxy server. I've tried several variations along the lines of:
 
$ua = new LWP::UserAgent;
$ua->proxy(https => 'https://xxx.xxx.x.x:port');
$req = new HTTP::Request(POST => 'https://something.com');
$res = $ua->request($req);
print $res->as_string;
 
If I don't set up the proxy I get an error message saying the site cannot be found, which is to be expected. When I set up the proxy the script hangs.
 
The proxy handles https ok when used from a browser. I've tried pointing the proxy at http:// and https:// but neither seems to work.
 
Any idea what is going wrong?
 
Thanks,
John
 
-- Governor Technology ---------------------------------
Web and Internet Software Development
John Mannix MA (Cantab)
Telephone: +44 20 8857 9846
Facsimile: +44 20 8857 8839
Email: [EMAIL PROTECTED]
Web: www.governor.co.uk
 


patch



Reply via email to