XoopsHttpGet - return response to a http get request
Methods | ||||||
---|---|---|---|---|---|---|
public
|
__construct(string $url)
XoopsHttpGet constructor.
XoopsHttpGet constructor. Parameters
Throws
|
# | ||||
public
|
fetch(): string|bool
Return the response from a GET to the specified URL.
Return the response from a GET to the specified URL. Returnsresponse or false on error |
# | ||||
protected
|
fetchCurl(): string|bool
Use curl to GET the specified URL.
Use curl to GET the specified URL. Returnsresponse or false on error |
# | ||||
protected
|
fetchFopen(): string|false
Use stream wrapper to GET the specified URL.
Use stream wrapper to GET the specified URL. Returnsresponse or false on error |
# | ||||
public
|
getError(): string|null
Return any error set during processing of fetch()
Return any error set during processing of fetch() |
# |
Properties | |||
---|---|---|---|
protected
|
|
$useCurl = true
|
# |
protected
|
|
$url
|
# |
protected
|
|
$error
|
# |