|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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: Thu Jun 01 02:03:36 2023 UTC