ZF-1318: HTTPS connection through Proxy
Description
I try to make HTTPS connection through Proxy with Zend_Http_Client and Zend_Http_Client_Adapter_Proxy. but always get expection "Unable to read response, or response is empty". Proxy has been verified no problem. After some debugging, I found that the only message returned from the proxy is "Connection: close".
p.s. make direct HTTPS connection works fine with Zend_Http_Client.
Comments
Posted by Shahar Evron (shahar) on 2007-04-29T04:06:44.000+0000
Hi,
Is this proxy open? Can you pass some example code and if possible the address of a proxy I can test on?
TIA,
Posted by ming (myhusky) on 2007-04-29T13:11:07.000+0000
here are some code you can take a look. the proxy used is Tor, I donot have a open to public proxy server , but you can easily install Tor on almost any platform.
Posted by Shahar Evron (shahar) on 2007-05-01T07:11:22.000+0000
Hi,
I've done some research and I believe that in order to properly support tunneling of HTTPS connections, we need to properly implement the CONNECT method in the client.
This is a big change and thus cannot be applied on the main branch before 1.0 is released. Also, it would require some time to work on.
I will do my best to look into this, but I am not sure this will be supported soon.
Posted by ming (myhusky) on 2007-05-02T12:25:01.000+0000
OK then, thanks
Posted by Shahar Evron (shahar) on 2007-05-09T02:41:11.000+0000
Changed to 'new feature' - add proper support for HTTP CONNECT requests
Posted by Shahar Evron (shahar) on 2007-07-31T10:32:31.000+0000
Support was added in one of the latest revisions and should be available in SVN HEAD. I am still waiting for feedback (got none) to see if it properly works or not.
Posted by ming (myhusky) on 2007-07-31T16:08:16.000+0000
I have tested the ZF latest revision. It did not work, I'm getting following errors
Warning: stream_socket_enable_crypto() [streams.crypto]: this stream does not support SSL/crypto in /Applications/Zend/ZendStudio-5.5.0/bin/ZendFramework/library/Zend/Http/Client/Adapter/Proxy.php on line 194
Posted by ming (myhusky) on 2007-07-31T16:31:02.000+0000
above my last comment, the problem was because of I did not have openssl installed.
It works now!!!
Thanks!!!
Posted by Shahar Evron (shahar) on 2007-10-11T13:14:32.000+0000
No complaints yet - seems to be relatively well implemented. If any bugs appear they should be opened as new issues.