note 110263 deleted from book.curl by danbrown
| From: | danbrown@php.net | Date: | Wed, 17 Oct 2012 21:28:10 +0000 |
| Subject: | note 110263 deleted from book.curl by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-191406@lists.php.net to get a copy of this message | ||
Note Submitter: nop dot 0x90 dot nop at gmail dot com
----
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.