PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTTP » HTTP_Request » Bug #3803

Cannot set "Content-type" header

Details

Submitted2005-03-14 10:02 UTC
Frompecoes at xs4all dot nl
StatusBogus
PackageHTTP_Request
PHP Version5.0.1
OSwindows 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