jenssegers / php-proxy

A PHP proxy script with https and post support
https://jenssegers.com
933 stars 266 forks source link

Does not work with PHP 5.6 #59

Open malins opened 6 years ago

malins commented 6 years ago

Basically this is not working at all, at least with PHP 5.6. I'm using the samples right from the README file, without any success.

There are (at least) two problems in the request to the remote server.

1) Transfer-Encoding: chunked (even for GET request) -- but there is no chunk following, hence the remote server is waiting until timeout. 2) Connection: keep-alive -- the remote servers sends the response, the connection is kept alive, but the proxy doesn't forward the response to the client (browser).

I tested using version 3.0.0.