[Fwd: https get/post through proxy, HOW???]
Clement Ng (clement.ng@treklogic.com)
Thu, 16 Mar 2000 08:48:39 -0500
--------------616676E3410145AAC543ADC9
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi all,
I saw a number of postings to comp.lang.perl.modules about
the problem of https over proxy server. However, there are
no answer to these postings.
The question I have is that is https supported over proxy server?
If not, is there a plan to support it in the future?
Thanks for the help.
Clement
--------------616676E3410145AAC543ADC9
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Path: bunson.tor.sfl.net!not-for-mail
Message-ID: <38CE63A8.1733B372@treklogic.com>
From: Clement Ng <clement.ng@treklogic.com>
X-Mailer: Mozilla 4.61 [en] (X11; U; SunOS 5.8 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.lang.perl.modules
Subject: https get/post through proxy, HOW???
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Date: Tue, 14 Mar 2000 11:07:04 -0500
NNTP-Posting-Host: 216.183.9.124
X-Trace: bunson.tor.sfl.net 953049940 216.183.9.124 (Tue, 14 Mar 2000 11:05:40 EDT)
NNTP-Posting-Date: Tue, 14 Mar 2000 11:05:40 EDT
Xref: bunson.tor.sfl.net comp.lang.perl.modules:20442
Hi all,
I have problem with https get/post through Netscape proxy server. The
get/post
program uses perl5 with the following modules:
Crypt-SSLeay-0.14
HTML-Parser-2.25
URI-1.04
openssl-0.9.4
MIME-Base64-2.11
libnet-1.0607
perl5.005_03
Digest-MD5-2.09
MIME-Lite-1.135
libwww-perl-5.47
Here is the perl code which does the GET:
use LWP::UserAgent;
my $ua = LWP::UserAgent->new;
$ua->proxy(['http', 'ftp'] => "http://firewall:8080");
my $req = HTTP::Request->new(GET =>
'https://www.testsite.com/retail.html);
my $res = $ua->request($req);
if ($res->is_success) {
print $res->as_string;
} else {
print "Failed: ", $res->as_string, "\n";
}
Here is the results from the Get:
Failed: 500 (Internal Server Error) Can't connect to
www.testsite.com:443 (Interrupted system call)
Client-Date: Tue, 14 Mar 2000 13:35:41 GMT
However, if I change the url to http instead of https, the program works
fine. Is there any
one who successfully try https get/post requests through proxy?
Thanks,
Clement
--------------616676E3410145AAC543ADC9--