function http_request_get in Feeds 7.2
Same name and namespace in other branches
- 8.2 libraries/http_request.inc \http_request_get()
- 6 libraries/http_request.inc \http_request_get()
- 7 libraries/http_request.inc \http_request_get()
Get the content from the given URL.
Parameters
string $url: A valid URL (not only web URLs).
string $username: If the URL uses authentication, supply the username.
string $password: If the URL uses authentication, supply the password.
bool $accept_invalid_cert: Whether to accept invalid certificates.
int $timeout: Timeout in seconds to wait for an HTTP get request to finish.
Return value
object An object that describes the data downloaded from $url.
File
- libraries/
http_request.inc, line 115 - Download via HTTP.
Code
function http_request_get($url, $username = NULL, $password = NULL, $accept_invalid_cert = FALSE, $timeout = NULL) {
return feeds_http_request($url, array(
'username' => $username,
'password' => $password,
'accept_invalid_cert' => $accept_invalid_cert,
'timeout' => $timeout,
));
}