note 81697 deleted from ref.curl by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 19:08:46 +0000 |
| Subject: | note 81697 deleted from ref.curl by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155203@lists.php.net to get a copy of this message | ||
Note Submitter: kburkholder at earthasylum dot com
----
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]