#41413 [Opn->Bgs]: HTTP proxying bug

From: Date: Thu, 17 May 2007 08:09:09 +0000
Subject: #41413 [Opn->Bgs]: HTTP proxying bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-112727@lists.php.net to get a copy of this message
ID: 41413 User updated by: vasso dot spam at gmail dot com Reported By: vasso dot spam at gmail dot com -Status: Open +Status: Bogus Bug Type: HTTP related Operating System: Windows PHP Version: 5.2.2 New Comment: I was wrong Previous Comments: ------------------------------------------------------------------------ [2007-05-17 07:09:56] vasso dot spam at gmail dot com Description: ------------ HTTP proxing (after 5.1.0) works only if request_fulluri is set to true. And there is no documentation about this. Reproduce code: --------------- $context = stream_context_create( array('http'=> array( 'proxy' => 'tcp://proxy.domain.com:3128/', //'request_fulluri' => true,//Works if uncommented ) ) ); $data = file_get_contents('http://google.com/', false, $context); var_export($data); Expected result: ---------------- + Actual result: -------------- Warning: file_get_contents(http://google.com/): failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in http_proxy_bug.php on line 10 - ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41413&edit=1

« previous php.bugs (#112727) next »