note 86798 deleted from httprequest.addheaders by sobak

From: Date: Sun, 04 Dec 2016 07:26:50 +0000
Subject: note 86798 deleted from httprequest.addheaders by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208108@lists.php.net to get a copy of this message
Note Submitter: pal ---- If like me you were wondering why your POST request is going out with the header 'Expect: 100-continue' set, it is being added by libcurl. This can only be noticed when using HttpRequest::getRawRequestMessage() and not HttpRequest::getHeaders(), or of course tcpdump or similar. To remove this header you can do the following; $r->addHeaders(array('Expect' => '')); Note this behaviour has also been reported in http://au.php.net/manual/en/function.curl-setopt.php#82418

« previous php.notes (#208108) next »