File: wp-includes/http.php
-
Controls the list of ports considered safe in HTTP API.
-
Retrieves a specific component from a parsed URL array.
-
Translates a PHP_URL_* constant to the named array keys PHP uses.
-
functionwp_parse_url()
A wrapper for PHP’s parse_url() function that handles consistency in the return values across PHP versions.
-
Retrieves a single cookie’s value by name from the raw response.
-
functionwp_remote_retrieve_cookies()
Retrieves only the cookies from the raw response.
-
functionwp_remote_retrieve_cookie()
Retrieves a single cookie by name from the raw response.
-
functionsend_origin_headers()
Sends Access-Control-Allow-Origin and related headers if the current request is from an allowed origin.
-
functionwp_http_validate_url()
Validates a URL for safe use in the HTTP API.
-
Checks if HTTP request is external or not.
-
functionallowed_http_request_hosts()
Marks allowed redirect hosts safe for HTTP requests as well.
-
functionms_allowed_http_request_hosts()
Adds any domain in a multisite installation for safe HTTP requests to the allowed list.
-
Changes the origin types allowed for HTTP requests.
-
functionis_allowed_http_origin()
Determines if the HTTP origin is an authorized one.
-
Changes the allowed HTTP origin result.
-
function_wp_http_get_object()
Returns the initialized WP_Http Object
-
Retrieves only the response code from the raw response.
-
functionwp_safe_remote_request()
Retrieves the raw response from a safe HTTP request.
-
Retrieves only the response message from the raw response.
-
functionwp_safe_remote_get()
Retrieves the raw response from a safe HTTP request using the GET method.
-
functionwp_remote_retrieve_body()
Retrieves only the body from the raw response.
-
functionwp_safe_remote_post()
Retrieves the raw response from a safe HTTP request using the POST method.
-
functionwp_http_supports()
Determines if there is an HTTP Transport that can process this request.
-
functionwp_safe_remote_head()
Retrieves the raw response from a safe HTTP request using the HEAD method.
-
functionget_http_origin()
Gets the HTTP Origin of the current request.
-
functionwp_remote_request()
Performs an HTTP request and returns its response.
-
hookhttp_origin
Changes the origin of an HTTP request.
-
functionwp_remote_get()
Performs an HTTP request using the GET method and returns its response.
-
functionget_allowed_http_origins()
Retrieves list of allowed HTTP origins.
-
functionwp_remote_post()
Performs an HTTP request using the POST method and returns its response.