Welcome Guest, Not a member yet? Register   Sign In
HTTP Class (supports both cURL and fsockopen)

[eluser]PHP Four[/eluser]
Hi Folks,

I've released a HTTP class today in my blog that can be used in CodeIgniter (I use in my projcts!) for all kinds of resource fetching from the web. It's a wrapper HTTP class that uses either cURL or fsockopen (degrades to fsockopen if cURL is not loaded in php).

Features include:

* Can use both cURL and fsockopen.
* Degrades to fsockopen if cURL not enabled.
* Supports HTTP Basic authentication.
* Supports defining custom request headers.
* Supports defining connection timeout values.
* Supports defining user agent and referral values.
* Supports both user-defined and persistent cookies.
* Supports secure connections (HTTPS) with and without cURL.
* Supports adding requests parameters for both GET and POST.
* Supports automatic redirection (maximum redirect can be defined).
* Returns HTTP response headers and response body data separately.

Check it out here: HTTP Class


Md Emran Hasan

Theme © iAndrew 2016 - Forum software by © MyBB