...
We are with the cURL class in a quite verbose mode, to get the most out of the web request you are doing. The response are separated in an array as follows
array key | array content value | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
code | The current HTTP Status code returned from the request (See https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) | ||||||||||||||
header | The full response header returned from the request as ...
... where info is an array with keys and values. Example:
| ||||||||||||||
body | The full returned body of the request | ||||||||||||||
parsed | If the body are recognized as specially formatted (json, xml, etc), the parsed array will transform into an object or an array, depending on the content. Currently, the parser supports simpler modes like XML (SimpleXMLElement) and by this also RSS-feeds (unconfirmed), JSON and serialized data. |
Simple usage
There are four basic function calls, that by default handles http calls automatically. Normally, no further settings are required except for calling an URL. Posting data could be made manually or as an object. It also handles proxies, outgoing ip-addresses and hopefully also the ability to switch to explicit ipv6- or ipv4-mode.
...