note 110263 added to book.curl
| From: | nopdot0x90dotnopatgmaildotcom | Date: | Fri, 05 Oct 2012 21:18:34 +0000 |
| Subject: | note 110263 added to book.curl | ||
| Groups: | php.notes php.notes | ||
| Request: | Send a blank email to php-notes+get-191152@lists.php.net to get a copy of this message | ||
I've build a curl wrapper class for simple (no cookies/auth) HTTP requests which features:
Easy interface, including access to:
- returned data
- transfer related data (everything from curl_getinfo)
- headers
- outcome (code, error, errno)
Request methods:
- single request (GET, HEAD)
- multi/queued request (GET):
- dynamic parallel requests count with configurable limit
- internal buffer
- using curl_multi_*
Also included:
- reusing of existing curl handles
- URL cleaner
It's some KB big - so I've put it on pastebin:
http://pastebin.com/KbXgHfpq
PS: I'm too lazy to document it's usage - but you should be able to get it from the code.
----
Server IP: 194.8.30.16
Probable Submitter: 46.183.98.165
----
Manual Page -- http://www.php.net/manual/en/book.curl.php
Edit -- https://master.php.net/note/edit/110263
Del: integrated -- https://master.php.net/note/delete/110263/integrated
Del: useless -- https://master.php.net/note/delete/110263/useless
Del: bad code -- https://master.php.net/note/delete/110263/bad+code
Del: spam -- https://master.php.net/note/delete/110263/spam
Del: non-english -- https://master.php.net/note/delete/110263/non-english
Del: in docs -- https://master.php.net/note/delete/110263/in+docs
Del: other reasons-- https://master.php.net/note/delete/110263
Reject -- https://master.php.net/note/reject/110263
Search -- https://master.php.net/manage/user-notes.php