|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41413 HTTP proxying bug
Submitted: 2007-05-17 07:09 UTC Modified: 2007-05-17 08:09 UTC
From: vasso dot spam at gmail dot com Assigned:
Status: Not a bug Package: HTTP related
PHP Version: 5.2.2 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: vasso dot spam at gmail dot com
New email:
PHP Version: OS:


 [2007-05-17 07:09 UTC] vasso dot spam at gmail dot com
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(
           'proxy' => 'tcp://',
           //'request_fulluri' => true,//Works if uncommented
$data = file_get_contents('', false, $context);

Expected result:

Actual result:
Warning: file_get_contents( failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request
 in http_proxy_bug.php on line 10


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-17 08:09 UTC] vasso dot spam at gmail dot com
I was wrong
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Jun 03 21:03:40 2023 UTC