Try=0D=0A=0D=0A $ENV{HTTPS_PROXY}=3D"127=2E0=2E0=2E1:5865";=0D=0A=0D=0A----=
-Original Message-----=0D=0AFrom: Luc_Gerard [at] stream=2Ecom [mailto:Luc_Gerar=
d [at] stream=2Ecom] =0D=0ASent: Wednesday, March 02, 2005 10:04 AM=0D=0ATo: lib=
www [at] perl=2Eorg=0D=0ASubject: https and proxy=0D=0A=0D=0A=0D=0A=0D=0A=0D=0A=
=0D=0AHello,=0D=0A=0D=0AI searched on comp=2Elang=2Eperl=2Emodules (and pos=
ted on it ) and the archive=0D=0Aof=0D=0Athis mailing-list to find solution=
s to my current problem=2E=0D=0AFirst, some details about my configuration:=
I use Activeperl version=0D=0A5=2E8=2E811 ( last one ) and lwp version 5=
=2E801 on win2k=2E=0D=0A=0D=0ASummary: I can't connect to any secure websit=
es=2E The as_string method of=0D=0Athe lwp module returns something like th=
at:=0D=0A( when I use the connect method )=0D=0A-----------------=0D=0A5=2E=
801HTTP/1=2E1 200 (OK) Connection established=0D=0AVia: 1=2E1 my_PROXY2=0D=
=0AClient-Date: Wed, 02 Mar 2005 14:28:46 GMT=0D=0AClient-Peer: 127=2E0=2E0=
=2E1:5865=0D=0A-----------------=0D=0A=0D=0Aand ( when I use the get or pos=
t method )=0D=0A-----------------=0D=0AHTTP/1=2E0 200 OK=0D=0AContent-Type:=
text/html=0D=0AClient-Date: Wed, 02 Mar 2005 14:29:23 GMT=0D=0AClient-Peer=
: 127=2E0=2E0=2E1:5865=0D=0AClient-Response-Num: 1=0D=0ARefresh: 0; URL=3Dh=
ttps://www=2Emywebsite=2Ecom/=0D=0A=0D=0A<HTML></HTML>=0D=0A---------------=
--=0D=0A=0D=0AI try to connect to secure or non-secure websites via a basic=
proxy (no=0D=0Aauthentification),=0D=0A which forward requests to a MS pro=
xy server ( with NTLM, but that's not=0D=0Athe problem here )=2E=0D=0A=0D=
=0AIf I use firefox or Ie to connect to the same secure websites, it works=
=0D=0Asuccessfully and display these=2E=0D=0A=0D=0AThe only difference foun=
d ( using ethereal ) between the http headers=0D=0Asent/received by the lwp=
module and a web browser,=0D=0Ais that the brower send a CONNECT, receive =
a 200 Connection etablished=0D=0Astatus,=0D=0A and then send back another C=
ONNECT request to the proxy, and then=0D=0Areceive=0D=0Athe webpage content=
=2E=0D=0A=0D=0AInstead of that, the lwp module sends the CONNECT method, re=
ceive a 200=0D=0Aconnection etablished, and then close connection=2E=0D=0AI=
f I try to manually do a second CONNECT request, I got again only the=0D=0A=
200=0D=0AConnection etablished status=2E=0D=0A=0D=0A=0D=0AIf anyone has som=
e ideas to try to solve this issue, it would be=0D=0Agreatfully=0D=0Aapprec=
iated=2E=0D=0AThanks in advance=2E=0D=0ALuc=0D=0A=0D=0AN=2EB: here's a basi=
c demo code=2E=0D=0A=0D=0A=0D=0Arequire LWP::UserAgent;=0D=0A=0D=0A$ua =3D =
LWP::UserAgent->new(redirect =3D> '5');=0D=0A$ua->proxy('http', 'http://127=
=2E0=2E0=2E1:5865/');=0D=0A=0D=0A$ua->proxy('https', 'https://127=2E0=2E0=
=2E1:5865/');=0D=0A=0D=0A$request =3D new HTTP::Request 'CONNECT' =3D>=0D=
=0A'https://www=2Esomewebsite=2Ecom/';=0D=0A=0D=0A$response =3D $ua->reques=
t($request);=0D=0A=0D=0Aprint $response->as_string;=0D=0A=0D=0Aif ($respons=
e->is_success) {=0D=0A #print $response->content;=0D=0A}=0D=0Aelse {=
=0D=0A die $response->status_line;=0D=0A}=0D=0A=0D=0A=0D=0A=0D=0A=0D=
=0A=0D=0A=0D=0A=0D=0A=0D=0A=0D=0A=0D=0A=0D=0A=0D=0A=0D=0A=0D =0A=0D=0A=0D=0A=
=0D=0A-----------------------------------------=0D=0A******* ***************=
**********************************************=0D=0AThis e-mail is intended=
only for the addressee named above=2E As this e-mail=0D=0Amay contain con=
fidential or privileged information, if you are not the=0D=0Anamed address=
ee, you are not authorised to retain, read, copy or=0D=0Adisseminate this =
message or any part of it=2E=0D=0A*****************************************=
***************************=0D=0A
