PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTTP » HTTP_Request » Bug #16

https doesn't work when using a proxy

Details

Submitted2003-09-17 08:42 UTC
Fromdavid at djin dot com
StatusWont fix
PackageHTTP_Request
PHP Version4.3.2
OSLinux
Roadmaps(Not assigned)

Comments

[2003-09-17 08:42 UTC] david at djin dot com

Description:
------------
I'm trying to connect to a host over HTTPS using a proxy.

This doesn't work, it:

1) Does nothing.
2) Gives an error

When connecting to the host over HTTPS without using a proxy,
everything works fine.

Reproduce code:
---------------
$params = array( "proxy_host" => $host,
"proxy_port" => $port );

$a = &new HTTP_Request( "https://" . $url, $params );
$a -> sendRequest( );
echo $a -> getResponseBody( );

Expected result:
----------------
Ouput the HTML code I requested from the host

Actual result:
--------------
Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error
messages:
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol in /usr/lib/php/Net/Socket.php on line 109

Warning: fsockopen(): php_stream_sock_ssl_activate_with_method:
SSL handshake/connection failed in /usr/lib/php/Net/Socket.php on line
109

Warning: fsockopen(): failed to activate SSL mode 1 in
/usr/lib/php/Net/Socket.php on line 109