note 83937 added to function.curl-setopt
| From: | SalilKothadia at osu1 dot php dot net | Date: | Thu, 19 Jun 2008 16:02:32 +0000 |
| Subject: | note 83937 added to function.curl-setopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140589@lists.php.net to get a copy of this message | ||
In PHP5, for the "CURLOPT_POSTFIELDS" option, we can use:
<?php
$ch = curl_init($URI);
$Post = http_build_query($PostData);
curl_setopt($ch, CURLOPT_POSTFIELDS, $Post);
$Output = curl_exec($ch);
curl_close($ch);
?>
----
Server IP: 69.147.83.197
Probable Submitter: 59.92.116.157
----
Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php
Edit -- https://master.php.net/note/edit/83937
Del: integrated -- https://master.php.net/note/delete/83937/integrated
Del: useless -- https://master.php.net/note/delete/83937/useless
Del: bad code -- https://master.php.net/note/delete/83937/bad+code
Del: spam -- https://master.php.net/note/delete/83937/spam
Del: non-english -- https://master.php.net/note/delete/83937/non-english
Del: in docs -- https://master.php.net/note/delete/83937/in+docs
Del: other reasons-- https://master.php.net/note/delete/83937
Reject -- https://master.php.net/note/reject/83937
Search -- https://master.php.net/manage/user-notes.php