wpseek.com
A WordPress-centric search engine for devs and theme authors



wp-includes/http.php › WordPress File

Functions28
Core HTTP Request API


Function Short description
allowed_http_request_hostsMarks allowed redirect hosts safe for HTTP requests as well.
get_allowed_http_originsRetrieves list of allowed HTTP origins.
get_http_originGets the HTTP Origin of the current request.
is_allowed_http_originDetermines if the HTTP origin is an authorized one.
ms_allowed_http_request_hostsAdds any domain in a multisite installation for safe HTTP requests to the allowed list.
send_origin_headersSends 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_urlValidates 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_getPerforms an HTTP request using the GET method and returns its response.
wp_remote_headPerforms an HTTP request using the HEAD method and returns its response.
wp_remote_postPerforms an HTTP request using the POST method and returns its response.
wp_remote_requestPerforms an HTTP request and returns its response.
wp_remote_retrieve_bodyRetrieves only the body from the raw response.
wp_remote_retrieve_cookieRetrieves a single cookie by name from the raw response.
wp_remote_retrieve_cookiesRetrieves only the cookies from the raw response.
wp_remote_retrieve_cookie_valueRetrieves a single cookie's value by name from the raw response.
wp_remote_retrieve_headerRetrieves a single header by name from the raw response.
wp_remote_retrieve_headersRetrieves only the headers from the raw response.
wp_remote_retrieve_response_codeRetrieves only the response code from the raw response.
wp_remote_retrieve_response_messageRetrieves only the response message from the raw response.
wp_safe_remote_getRetrieves the raw response from a safe HTTP request using the GET method.
wp_safe_remote_headRetrieves the raw response from a safe HTTP request using the HEAD method.
wp_safe_remote_postRetrieves the raw response from a safe HTTP request using the POST method.
wp_safe_remote_requestRetrieves the raw response from a safe HTTP request.
_get_component_from_parsed_url_arrayRetrieves a specific component from a parsed URL array.
_wp_http_get_objectReturns the initialized WP_Http Object
_wp_translate_php_url_constant_to_keyTranslates a PHP_URL_* constant to the named array keys PHP uses.