{"issue":{"user":{"id":1236071,"login":"olofa","url":"https://api.github.com/users/olofa","avatar_url":"https://secure.gravatar.com/avatar/6a150cbbc8e6281efbd5731cf5583109?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6a150cbbc8e6281efbd5731cf5583109"},"milestone":null,"created_at":"2011-12-22T07:44:56Z","title":"HTTP_Request, http proxy issue","updated_at":"2011-12-22T07:44:56Z","labels":[],"state":"open","id":2634915,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/pear2/HTTP_Request/issues/5","closed_at":null,"number":5,"body":"Hi,\r\n\r\nI'm using php 5.3.2 and pyrus 2.0.0a3. I have also tried with php 5.3.8.\r\n\r\nI did:\r\n\r\npyrus set http_proxy fqdn:port\r\n\r\nI run tcpdump on the http proxy server and this is what I get when trying to install a package:\r\n\r\nGET /rest/p/pear2_net_transmitter/info.xml HTTP/1.0\r\nHost: pear2.php.net\r\nUser-Agent: PEAR2_Pyrus/2.0.0a3/PHP/5.3.2\r\nAccept:\r\n\r\nOur squid3 proxy doesn't accept that. It wants to have it like this:\r\n\r\nGET http://pear2.php.net/rest/p/pear2_net_transmitter/info.xml HTTP/1.0\r\nHost: pear2.php.net\r\nUser-Agent: PEAR2_Pyrus/2.0.0a3/PHP/5.3.2\r\nAccept:\r\n\r\nSaltybeagle suggested that this is a bug in HTTP_Requst.\r\n\r\nI guess the problem is on line 312 in ./src/HTTP/Request/Adapter/Phpsocket.php. First shot would be to change it into:\r\n\r\n        $httpRequest  = \"$this->verb http://$host/$path $this->httpVersion\\r\\n\";\r\n","url":"https://api.github.com/repos/pear2/HTTP_Request/issues/5","comments":0,"assignee":null},"action":"opened"}