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_hosts | Marks allowed redirect hosts safe for HTTP requests as well. |
get_allowed_http_origins | Retrieves list of allowed HTTP origins. |
get_http_origin | Gets the HTTP Origin of the current request. |
is_allowed_http_origin | Determines if the HTTP origin is an authorized one. |
ms_allowed_http_request_hosts | Adds any domain in a multisite installation for safe HTTP requests to the allowed list. |
send_origin_headers | Sends Access-Control-Allow-Origin and related headers if the current request is from an allowed origin. |
wp_http_supports | Determines if there is an HTTP Transport that can process this request. |
wp_http_validate_url | Validates a URL for safe use in the HTTP API. |
wp_parse_url | A wrapper for PHP's parse_url() function that handles consistency in the return values across PHP versions. |
wp_remote_get | Performs an HTTP request using the GET method and returns its response. |
wp_remote_head | Performs an HTTP request using the HEAD method and returns its response. |
wp_remote_post | Performs an HTTP request using the POST method and returns its response. |
wp_remote_request | Performs an HTTP request and returns its response. |
wp_remote_retrieve_body | Retrieves only the body from the raw response. |
wp_remote_retrieve_cookie | Retrieves a single cookie by name from the raw response. |
wp_remote_retrieve_cookies | Retrieves only the cookies from the raw response. |
wp_remote_retrieve_cookie_value | Retrieves a single cookie's value by name from the raw response. |
wp_remote_retrieve_header | Retrieves a single header by name from the raw response. |
wp_remote_retrieve_headers | Retrieves only the headers from the raw response. |
wp_remote_retrieve_response_code | Retrieves only the response code from the raw response. |
wp_remote_retrieve_response_message | Retrieves only the response message from the raw response. |
wp_safe_remote_get | Retrieves the raw response from a safe HTTP request using the GET method. |
wp_safe_remote_head | Retrieves the raw response from a safe HTTP request using the HEAD method. |
wp_safe_remote_post | Retrieves the raw response from a safe HTTP request using the POST method. |
wp_safe_remote_request | Retrieves the raw response from a safe HTTP request. |
_get_component_from_parsed_url_array | Retrieves a specific component from a parsed URL array. |
_wp_http_get_object | Returns the initialized WP_Http Object |
_wp_translate_php_url_constant_to_key | Translates a PHP_URL_* constant to the named array keys PHP uses. |