PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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