HTTP API (category)

status_header()

Sets the specified status in the HTTP response header of the server. HTTP status code (200, 404, etc.).

wp_get_http_headers()

Retrieves the HTTP headers of the specified URL.

wp_remote_get()

Retrieve the raw response from the HTTP request using the GET method. It's a wrapper for curl. The result includes HTTP headers and content of the webpage, and returned in the form of an array.

wp_remote_head()

Gets the HTTP response for a request. Uses the HEAD request method. Retrieves only headers, without the response body.

wp_remote_post()

Gets a remote page using the HTTP POST method. The result includes HTTP headers and content of the webpage and returned in the form of an array. It's a wrapper for curl.

wp_remote_request()

Creates any type of HTTP request and returns the response of the request as an array.

wp_remote_retrieve_body()

Retrieves the content (body) of a response which was retrieved by any of the functions like wp_remote_*(), for example wp_remote_get().

wp_remote_retrieve_cookie()

Retrieves the data of a specific named cookie from the response passed to the request.

wp_remote_retrieve_cookie_value()

Retrieve the value of the specified cookie from the passed query response.

wp_remote_retrieve_cookies()

Retrieves all data of all cookies from the given response to a request.

wp_remote_retrieve_header()

Retrieves the specified response header field from the passed response object.

wp_remote_retrieve_headers()

Retrieves all response header fields from the passed response object.

wp_remote_retrieve_response_code()

Gets the response code (status response) from the provided request object.

wp_remote_retrieve_response_message()

Retrieves the response message from the passed response object.

wp_safe_remote_request()

Gets data for the given HTTP request (URL). Data is returned as an array: body, headers, response status...