Re: HTTPS_PROXY and LWP

2004-01-24 Thread Andreas J Koenig
 On Thu, 22 Jan 2004 01:41:02 +0100, [EMAIL PROTECTED] (Philippe 'BooK' Bruhat) 
 said:

   HTTPS_PROXY=http://localhost:8080/ lwp-request https://www.example.com/

Out of curiosity I tried exactly this on my machine (where I have no proxy running) 
and see:

  % HTTPS_PROXY=http://localhost:8080/ lwp-request -deSs https://www.example.com/
  GET https://www.example.com/ -- 500 Can't connect to localhost:8080 (Timeout)
  Client-Date: Sat, 24 Jan 2004 17:28:47 GMT

Apparently lwp tries to use the proxy. Maybe you try to turn off your
proxy and reconsider your debugging strategy?

-- 
andreas


Re: HTTPS_PROXY and LWP

2004-01-24 Thread Philippe 'BooK' Bruhat
Le samedi 24 janvier 2004 à 18:31, Andreas König écrivait:
  On Thu, 22 Jan 2004 01:41:02 +0100, [EMAIL PROTECTED] (Philippe 'BooK' Bruhat) 
  said:
 
HTTPS_PROXY=http://localhost:8080/ lwp-request https://www.example.com/
 
 Out of curiosity I tried exactly this on my machine (where I have no proxy running) 
 and see:
 
   % HTTPS_PROXY=http://localhost:8080/ lwp-request -deSs https://www.example.com/
   GET https://www.example.com/ -- 500 Can't connect to localhost:8080 (Timeout)
   Client-Date: Sat, 24 Jan 2004 17:28:47 GMT
 
 Apparently lwp tries to use the proxy. Maybe you try to turn off your
 proxy and reconsider your debugging strategy?

Yes it does. When using the CONNECT method in a Request, LWP::UA returns
a response object holding the headers of the proxy response, and the
established TCP connection as $response-{client_socket}.

I'm stuck now, because I'd like to continue using LWP::UA on this
encrypted socket, but I haven't yet understood how to do it.

It's not for debugging, by the way. HTTP::Proxy now supports the CONNECT
method (although not in a 'man-in-the-middle' fashion (but it's on the
TODO list)) and I would like to add a few tests fot this feature before
I release version 0.13 on CPAN.

-- 
 Philippe BooK Bruhat

 All life affects us... even that which is far from our gaze.
(Moral from Groo The Wanderer #59 (Epic))


Re: HTTPS_PROXY and LWP

2004-01-21 Thread Foo Cheung
On Thu, 22 Jan 2004 [EMAIL PROTECTED] wrote:


HI Joe


as requested.

please find the est components of  each of the asparagus TCs 

kind regards


Foo






 Hello,
 
 I'm trying to force LWP::UserAgent to go through a proxy with the
 CONNECT method. At first, I tried the following:
 
 $ HTTPS_PROXY=http://localhost:8080/ lwp-request https://www.example.com/
 
 But what LWP::UA actually ask for is:
 
 GET https://www.example.com/ HTTP/1.1
 
 as shown by ngrep -i lo 'GET|CONNECT' port 8080 ...
 
 
 After much browsing the docs and grepping the code, I still haven't found
 out how can I make LWP::userAgent actually do a CONNECT through the proxy.
 
 Does anybody know? Or maybe it can't?
 
 
TC1 APAA578TH   APAAB05TH   APAAV27TH   APAA832TH   APAA603TH  
 APAA870TH   APAAR10TH
TC2 APABK49TH   APAA742TH   APAAB59TH   APABG94TH   APAA341TH  
 APAB505TH   APAA176TH   APABJ94TH   APAAQ20TH   APAAF18TH   
APABC55TH   APAA290TH
TC3 APAB810TH   APAA937TH   APAA884TH   APAAR48TH   APAAM10TH  
 APAAZ94TH   APAB428TH   APAA926TH   APABD91TH   APAB382TH
TC4 APABI41TH   APAB358TH   APAA318TH   APAAR63TH   APAB682TH
TC5 APAB572TH   APAAZ16TH   APAA985TH   APAA130TH   APAAV15TH  
 APABJ49TH   APABB96TH   APABH05TH   APABG10TH   APAB114TH   
APAA874TH   APAAE80TH   APABG21TH   APAAV11TH   APAAU64TH   
APABF43TH   APAB948TH   APAAU91TH   APAAQ38TH   APAA191TH   
APAAN77TH   APAAN52TH   APAAO81TH
TC6 APABL34TH   APAA556TH   APABM10TH   APAAP58TH
TC7 APABE19TH   APAA325TH   APAAY02TH   APABD09TH   APAB653TH  
 APAA786TH   APAB266TH   APAA536TH   APAAA16TH   APAAF59TH   
APAAE14TH   APAAX74TH   APABA09TH   APAA127TH   APAA362TH   
APAA482TH   APAA505TH   APAAI55TH   APABG78TH   APAAE91TH   
APAAJ45TH   APAA233TH   APABC40TH   APAAF93TH   APAAE73TH   
APAAJ25TH
TC8 APAAQ74TH   APAA559TH   APAB740TH   APABB49TH   APAAL68TH  
 APAB521TH   APABK56TH   APABH01TH   APAAO36TH   APAA055TH   
APAAI49TH   APAAN04TH   APAB980TH   APAAK13TH   APAAV68TH   
APAB104TH
TC9 APAAO23TH   APAAD34TH   APABL06TH   APAA557TH
TC10APAAR30TH   APAA824TH   APAAJ90TH
TC11APAAY86TH   APAB044TH   APAA701TH   APABE96TH   APAA280TH  
 APAAI16TH   APAAU66TH   APAA494TH   APAAD06TH   APAAG79TH   
APAA888TH   APAB681TH   APAAL38TH   APAB504TH   APABG47TH   
APAA160TH   APAAY33TH   APAA296TH   APAB901TH   APAAV12TH
TC12APAB562TH   APAB349TH   APAA783TH   APAB389TH   APAA331TH  
 APAB168TH   APABK25TH   APAB960TH   APAB702TH   APABE89TH   
APAAT48TH   APABL57TH   APAA725TH   APAAU83TH   APABA23TH   
APAB538TH   APABH31TH   APAB024TH
TC13APAAQ26TH   APAB105TH
TC14APAB341TH   APAB502TH   APAA662TH   APAB235TH
TC15APAA686TH   APAAC12TH   APAAT50TH   APABB85TH
TC16APAB251TH   APAAQ67TH   APAB386TH   APAAG86TH   APAB109TH
TC17APAB809TH   APAAS13TH   APAAS37TH
TC18APABK28TH   APABF10TH
TC19APABI26TH   APAAV54TH   APAA995TH   APAA024TH   APAAP77TH  
 APAA246TH   APAB048TH   APAB264TH   APAAD67TH   APABL78TH   
APAA865TH   APAA887TH   APAAO46TH   APAB765TH   APAB252TH   
APAAS25TH
TC20APAA638TH   APAA307TH
TC21APABK53TH   APAA430TH   APABL31TH   APABE23TH   APABH21TH  
 APABK34TH   APAAN35TH   APAA086TH   APABM60TH   APAAJ01TH   
APAB192TH   APABM56TH   APABF83TH   APAAV52TH
TC22APAB489TH   APAA739TH   APAAN79TH   APAB294TH   APAAL74TH  
 APAA825TH   APAAP14TH   APAA383TH   APAAZ95TH   APAA747TH   
APABM04TH   APAAN33TH   APAAR78TH   APABL30TH   APAAD74TH
TC23APABC45TH   APAA022TH   APAB689TH   APABE92TH   APAAU13TH  
 APABA03TH   APAAI60TH   APAAH49TH   APABB03TH
TC24APAAZ39TH   APAAN14TH   APABD31TH   APAAQ35TH   APAAQ95TH  
 APAAU95TH
TC25APABM84TH   APAAM60TH   APAB559TH   APAB167TH   APAB662TH  
 APAB861TH   APAA236TH   APAAH05TH   APAAL81TH   APAA515TH   
APAAD17TH   APAAS89TH   APAB802TH   APABC84TH   APAAF13TH
TC26APAB555TH   APAAA33TH   APAAI22TH
TC27APABG59TH   APAAB72TH   APAA212TH   APAB720TH   APAAZ72TH  
 APABG37TH   APAAC31TH   APAAH22TH   APABN85TH   APAAH46TH
TC28APAB892TH   APAAF54TH   APAB237TH   APABJ17TH  

RE: HTTPS_PROXY and LWP

2004-01-21 Thread Cheung, Foo
Mistake, ignore my email..
sorry about that!

-Original Message- 
From: Cheung, Foo 
Sent: Wed 1/21/2004 8:06 PM 
To: [EMAIL PROTECTED] 
Cc: [EMAIL PROTECTED] 
Subject: Re: HTTPS_PROXY and LWP



On Thu, 22 Jan 2004 [EMAIL PROTECTED] wrote:


HI Joe


as requested.

please find the est components of  each of the asparagus TCs

kind regards


Foo






 Hello,

 I'm trying to force LWP::UserAgent to go through a proxy with the
 CONNECT method. At first, I tried the following:

 $ HTTPS_PROXY=http://localhost:8080/ lwp-request https://www.example.com/

 But what LWP::UA actually ask for is:

 GET https://www.example.com/ HTTP/1.1

 as shown by ngrep -i lo 'GET|CONNECT' port 8080 ...


 After much browsing the docs and grepping the code, I still haven't found
 out how can I make LWP::userAgent actually do a CONNECT through the proxy.

 Does anybody know? Or maybe it can't?