note 86798 added to function.httprequest-addheaders

From: Date: Tue, 04 Nov 2008 12:20:07 +0000
Subject: note 86798 added to function.httprequest-addheaders
Groups: php.notes 
Request: Send a blank email to php-notes+get-146114@lists.php.net to get a copy of this message
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 ---- Server IP: 203.88.112.190 Probable Submitter: 125.168.132.95 ---- Manual Page -- http://www.php.net/manual/en/function.httprequest-addheaders.php Edit -- https://master.php.net/note/edit/86798 Del: integrated -- https://master.php.net/note/delete/86798/integrated Del: useless -- https://master.php.net/note/delete/86798/useless Del: bad code -- https://master.php.net/note/delete/86798/bad+code Del: spam -- https://master.php.net/note/delete/86798/spam Del: non-english -- https://master.php.net/note/delete/86798/non-english Del: in docs -- https://master.php.net/note/delete/86798/in+docs Del: other reasons-- https://master.php.net/note/delete/86798 Reject -- https://master.php.net/note/reject/86798 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#146114) next »