note 86022 deleted from function.curl-exec by danbrown
| From: | danbrown@php.net | Date: | Mon, 04 Jan 2010 21:37:37 +0000 |
| Subject: | note 86022 deleted from function.curl-exec by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-164642@lists.php.net to get a copy of this message | ||
Note Submitter: eljunior AT inf ufsm br
----
Well put, lmshad!
I just added this method:
<?php
// activates POST and set post data
public static function addPostData($data) {
self::$options[CURLOPT_POST] = true;
self::$options[CURLOPT_POSTFIELDS] = $data;
}
?>