HTTP: HTTP client class Md Emran Hasan (contact me)
This class can be used to access Web resources using either sockets opened with fsockopen or Curl library depending on which is available in the current PHP setup. It features:
- Supports to HTTP Basic authentication
- Supports defining custom request headers
- Supports defining connection timeout values
- Supports defining user agent and referral URL
- Supports both user-defined and persistent cookies
- Supports secure connections (HTTPS)
- Supports adding requests parameters for both GET and POST methods
- Supports automatic redirection with maximum redirect limits
- Returns HTTP response headers and response body data separately