Home » HTTP » HTTP_Request » Bug #3803
Cannot set "Content-type" header
Details
| Submitted | 2005-03-14 10:02 UTC |
|---|---|
| From | pecoes at xs4all dot nl |
| Status | Bogus |
| Package | HTTP_Request |
| PHP Version | 5.0.1 |
| OS | windows xp |
| Roadmaps | (Not assigned) |
Comments
[2005-03-14 10:02 UTC] pecoes at xs4all dot nl
Description:
------------
I cannot overwrite the content-type "application/x-www-form-urlencoded" with one of my own choice.
Reproduce code:
---------------
$request->addHeader('Content-Type', 'application/xml');
Expected result:
----------------
Content-Type: application/xml
Actual result:
--------------
Content-Type: application/x-www-form-urlencoded, application/xml