LWP, https and a proxy

l.g.h_at_caramail.com
Date: 02/22/05

  • Next message: zzo: "ANNOUNCE: TiVo::HME 1.2"
    Date: 22 Feb 2005 06:43:53 -0800
    
    

    Hello,

    I'm trying to use LWP module to access a secured website via a proxy (
    standard proxy which forward to a ms proxy server )

    Symptoms:
    I can access successfully any non-secure website (http), but when I try
    to access a https website, I got "<html></html>" as data and a 200
    response code from the http server.

    An application ( such as Mozilla ) with the same proxy parameters
    access successfully to any secured or non secured websites.

    With Ethereal, the only difference seems to be that mozilla/ie uses the
    CONNECT directive instead of the GET directive of LWP.
    And when mozilla/ie receive a 200 "connection etablished", they send
    another "CONNECT" request to the proxy, and then get successfully the
    requested webpage.

    So I used the CONNECT method too. But it doesn't works better.

    Here's what I wrote: ( I use activestate perl 5.8.4 )
    ___________________________________
    $ua = LWP::UserAgent->new(redirect => '5');
    $ua->proxy('http', 'http://127.0.0.1:5865/');
    $ua->proxy('https', 'http://127.0.0.1:5865/');

    $request = new HTTP::Request CONNECT => 'https://www.axabanque.fr/'; #
    same issue with GET

    $response = $ua->request($request);
    print $response->as_string;

     if ($response->is_success) {
    print $response->content . $response->as_string;
     }
     else {
         die $response->status_line . $response->as_string;
     }
    ______________________________________

    Thanks in advance for any ideas ...
    Luc


  • Next message: zzo: "ANNOUNCE: TiVo::HME 1.2"

    Relevant Pages

    • Re: LWP, https and a proxy
      ... > I'm trying to use LWP module to access a secured website via a proxy ( ... > standard proxy which forward to a ms proxy server) ...
      (comp.lang.perl.modules)
    • Re: Workaround for error code 80072EFD download critical updates failed
      ... Explorer on clients that have proxy servers, and must be set directly at the ... Open a single Internet Explorer browser and check proxy settings. ... Remember the name and port of this proxy server. ... Enter "Windows Update" in the Name field, ...
      (microsoft.public.windowsupdate)
    • Re: Trend Micro and Proxy Server
      ... Les Connor [SBS Community Member - SBS MVP] ... from "use a proxy server" in IE. ... remove the tick from "use a proxy server" in IE - if that ... than to just turn off the proxy in the server's IE settings. ...
      (microsoft.public.windows.server.sbs)
    • Re: Trend Micro and Proxy Server
      ... Les Connor [SBS Community Member - SBS MVP] ... from "use a proxy server" in IE. ... remove the tick from "use a proxy server" in IE - if that ... IE's use proxy settings. ...
      (microsoft.public.windows.server.sbs)
    • Re: Trend Micro and Proxy Server
      ... remove the tick from "use a proxy server" in IE - if that works ... Les Connor [SBS Community Member - SBS MVP] ... just turn off the proxy in the server's IE settings. ...
      (microsoft.public.windows.server.sbs)