◆ __construct()
XoopsHttpGet constructor.
- Parameters
-
string | $url | the url to process |
- Exceptions
-
RuntimeException if neither curl extension or stream wrappers (allow_url_fopen) is available
◆ fetch()
Return the response from a GET to the specified URL.
- Returns
- string|bool response or false on error
◆ fetchCurl()
Use curl to GET the specified URL.
- Returns
- string|bool response or false on error
◆ fetchFopen()
Use stream wrapper to GET the specified URL.
- Returns
- string|false response or false on error
◆ getError()
Return any error set during processing of fetch()
- Returns
- string|null
◆ $error
◆ $url
◆ $useCurl
The documentation for this class was generated from the following file: