note 11132 deleted from function.curl-setopt by sobak
| From: | sobak@php.net | Date: | Wed, 06 May 2015 04:15:02 +0000 |
| Subject: | note 11132 deleted from function.curl-setopt by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-202450@lists.php.net to get a copy of this message | ||
Note Submitter: bvr at xs4all dot nl
----
If you'd like to include extra headers in your POST request, you can accomplish this by setting
the following option:
CURLOPT_HTTPHEADER
This is similar to the CURL -H command line switch.
Thanks to Daniel Stenberg for pointing out this usefull feature!
Note: this option was first supported in PHP version 4.03 .