A WordPress-centric search engine for devs and theme authors



wp-includes/http.php ›

Functions28
Core HTTP Request API


Function Short description
allowed_http_request_hostsWhitelists allowed redirect hosts for safe HTTP requests as well.
get_allowed_http_originsRetrieve list of allowed HTTP origins.
get_http_originGet the HTTP Origin of the current request.
is_allowed_http_originDetermines if the HTTP origin is an authorized one.
ms_allowed_http_request_hostsWhitelists any domain in a multisite installation for safe HTTP requests.
send_origin_headersSend Access-Control-Allow-Origin and related headers if the current request is from an allowed origin.
wp_http_supportsDetermines if there is an HTTP Transport that can process this request.
wp_http_validate_urlValidate a URL for safe use in the HTTP API.
wp_parse_urlA wrapper for PHP's parse_url() function that handles consistency in the return values across PHP versions.
wp_remote_getRetrieve the raw response from the HTTP request using the GET method.
wp_remote_headRetrieve the raw response from the HTTP request using the HEAD method.
wp_remote_postRetrieve the raw response from the HTTP request using the POST method.
wp_remote_requestRetrieve the raw response from the HTTP request.
wp_remote_retrieve_bodyRetrieve only the body from the raw response.
wp_remote_retrieve_cookieRetrieve a single cookie by name from the raw response.
wp_remote_retrieve_cookiesRetrieve only the cookies from the raw response.
wp_remote_retrieve_cookie_valueRetrieve a single cookie's value by name from the raw response.
wp_remote_retrieve_headerRetrieve a single header by name from the raw response.
wp_remote_retrieve_headersRetrieve only the headers from the raw response.
wp_remote_retrieve_response_codeRetrieve only the response code from the raw response.
wp_remote_retrieve_response_messageRetrieve only the response message from the raw response.
wp_safe_remote_getRetrieve the raw response from a safe HTTP request using the GET method.
wp_safe_remote_headRetrieve the raw response from a safe HTTP request using the HEAD method.
wp_safe_remote_postRetrieve the raw response from a safe HTTP request using the POST method.
wp_safe_remote_requestRetrieve the raw response from a safe HTTP request.
_get_component_from_parsed_url_arrayRetrieve a specific component from a parsed URL array.
_wp_http_get_objectReturns the initialized WP_Http Object
_wp_translate_php_url_constant_to_keyTranslate a PHP_URL_* constant to the named array keys PHP uses.