note 47374 added to ref.curl
| From: | php at cobalthorizons dot com | Date: | Sun, 14 Nov 2004 06:44:18 +0000 |
| Subject: | note 47374 added to ref.curl | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-80482@lists.php.net to get a copy of this message | ||
btw, CURLOPT_HTTPHEADER expects an array:
$myHeader = array(
"MIME-Version: 1.0",
"Content-type: text/html; charset=iso-8859-1",
"Content-transfer-encoding: text",
);
curl_setopt($ch, CURLOPT_HTTPHEADER, $myHeader);
(hope this saves someone several hours of...)
----
Manual Page -- http://www.php.net/manual/en/ref.curl.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47374
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47374&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47374&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47374&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47374&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47374&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47374&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47374&report=yes
Search -- http://master.php.net/manage/user-notes.php