reset()
reset()
Reset the http object state to default values.
A set of utility functions for performing http requests.
This class uses an embedded http object, which in turn relies on curl (or attempts to use fsockupeon if all else fails) to perform http requests.
post(string $URL, array $data, string $referer) : string
Send a POST request to the specified URL
string | $URL | The specified data |
array | $data | Data to associate with the URL |
string | $referer | An optional referer string. If not specified, a preset value is used. |
The HTML or other data returned from the request."
get(string $URL, string $referer, bool $use_curl) : string
Send a GET request to the specified URL.
This method will use file_get_contents to read the URL if curl is not available, or use_curl is set to false.
string | $URL | |
string | $referer | An optional referer string |
bool | $use_curl |