Re: Problem reading HTTPS response

2001-10-17 Thread Joshua Chamas

[[ cc openssl-users for mailing list archival ]]

Plamen Ratchev wrote:
 
 Hi Josh!
 
 I was able to isolate the problem down to the proxy. Last night I tried the
 same script at my office, which doesn't have a proxy and everything worked
 fine. The proxy on my client's site is MS Proxy Server 2.0. I can access any
 HTTP page but when I switch to HTTPS the response is just a blank page
 HTML/HTML. I tried testing with lwp_ssl_test and net_ssl_test with no
 luck: lwp_ssl_test completes normal with no errors; net_ssl_test result is
 an unknown error in module SSL.pm line 44.

If lwp_ssl_test works, then you got it!  You just need to script
like what's in lwp_ssl_test.

 LWP::UserAgent functions (I already tested all possible proxy options with
 it)? Or maybe another module that provides this capability.

Yes, look at lwp_ssl_test for the right %ENV settings, 
or perldoc Crypt::SSLeay, and check out the PROXY section.
The trick is setting:

  $ENV{HTTPS_PROXY} = 'http://proxy_hostname_or_ip:port';

but not using any LWP proxy settings explicitly.

--Josh
__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]

__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]



Re: Problem reading HTTPS response

2001-10-15 Thread Joshua Chamas

Plamen Ratchev wrote:
 
 ...
 I am trying to use GET and POST with HTTPS pages. So, I downloaded the
 latest version of ActivePerl 5.6.1 (build 629), Crypt-SSLeay 17.1, and
 libwww-perl 5.48 (everything was installed in the same order). Forgot to
 mention that I am running Windows 2000 Server. Tested the installation with
 some simple GET and POST requests to HTTP pages. Everything works fine (I go
 through a Proxy server for all these tests). Then I switched to HTTPS pages.
 Everything appears to be fine and I get response code 200 (OK). However,
 when I print the response content it appears blank - only HTML/HTML

[[ cc openssl users which is the mailing list for Crypt::SSLeay support ]]

Make sure you can access the sites through the proxy with a normal
web browser.  If not, then it may be a proxy error.  Then try 
downgrading to an older LWP version.  Users have been reporting 
problems with the latest LWP.  

Also, try to contact the site with the lwp-ssl-test  net_ssl_test 
that comes with Crypt::SSLeay package.  If the latter works, then 
it may be a problem with how you are using LWP.  Besure to read 
the perldoc Crypt::SSLeay docs, and not solely rely on 
LWP::UserAgent for proxy usage.

-- Josh
__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]