|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-05-17 08:09 UTC] vasso dot spam at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 15:00:01 2025 UTC |
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 -