note 81697 added to ref.curl
| From: | kburkholder at earthasylum dot com | Date: | Mon, 10 Mar 2008 10:55:14 +0000 |
| Subject: | note 81697 added to ref.curl | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-136894@lists.php.net to get a copy of this message | ||
I've developed a simple curl class for executing get, post, and put requests (based on the
documentation and user notes here).
The simplest example:
<?php
// a simple GET request:
include('eac_curl.class.php');
$http = new cURL();
$result = $http->get('http://www.domain.com/somepage.php');
?>
Along with that is a streams class to perform nearly the same thing using streams.
http://www.kevinburkholder.com/sw_curl_stream.php
Hope it's useful. Any feedback is welcomed.
[note: cross-posted to streams page]
----
Server IP: 209.41.74.194
Probable Submitter: 68.163.2.246
----
Manual Page -- http://www.php.net/manual/en/ref.curl.php
Edit -- https://master.php.net/note/edit/81697
Del: integrated -- https://master.php.net/note/delete/81697/integrated
Del: useless -- https://master.php.net/note/delete/81697/useless
Del: bad code -- https://master.php.net/note/delete/81697/bad+code
Del: spam -- https://master.php.net/note/delete/81697/spam
Del: non-english -- https://master.php.net/note/delete/81697/non-english
Del: in docs -- https://master.php.net/note/delete/81697/in+docs
Del: other reasons-- https://master.php.net/note/delete/81697
Reject -- https://master.php.net/note/reject/81697
Search -- https://master.php.net/manage/user-notes.php