ID:               44603
 Updated by:       [EMAIL PROTECTED]
 Reported By:      tobias382 at gmail dot com
-Status:           Assigned
+Status:           Closed
 Bug Type:         HTTP related
 Operating System: Kubuntu 7.10
 PHP Version:      5.2CVS, 5.3CVS (2008-04-02)
 Assigned To:      iliaa
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2008-04-06 15:22:03] [EMAIL PROTECTED]

Fixed in 6 and 5.3, needs to be MFHed to 5.2 post 5.2.6

------------------------------------------------------------------------

[2008-04-03 14:05:57] [EMAIL PROTECTED]

There is indeed something very wrong with this. Quick stracing suggests
that the order in which the headers are is maybe incorrect and there's
an extra '\r\n' there..

------------------------------------------------------------------------

[2008-04-02 15:22:28] tobias382 at gmail dot com

The issue is still present in this snapshot: php5.2-200804021430.

------------------------------------------------------------------------

[2008-04-02 02:38:14] tobias382 at gmail dot com

Description:
------------
Specifying a Content-type header in a streams operation using the HTTP
wrapper causes a file_get_contents operation using that streams context
to fail. Not specifying the Content-type header results in a Notice
being issued saying that application/x-www-form-urlencoded is assumed
and the script then works as expected.

Reproduce code:
---------------
http://paste2.org/p/18455

Expected result:
----------------
Should send a URL in the following format to stdout, where # is a
number.

http://paste2.org/p/#

Actual result:
--------------
Warning: file_get_contents(http://paste2.org/new-paste): failed to open
stream: HTTP request failed! HTTP/1.1 404 Not Found in
/home/matt/pastebin.php on line 21


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=44603&edit=1

Reply via email to