HTTP API (category)

status_header()

Set HTTP status header.

wp_get_http_headers()

Retrieve HTTP Headers from 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()

Retrieve the raw response from the HTTP request using the HEAD method.

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()

Retrieve a single cookie by name from the raw response.

wp_remote_retrieve_cookie_value()

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

wp_remote_retrieve_cookies()

Retrieve only the cookies from the raw response.

wp_remote_retrieve_header()

Retrieve a single header by name from the raw response.

wp_remote_retrieve_headers()

Retrieve only the headers from the raw response.

wp_remote_retrieve_response_code()

Retrieve only the response code from the raw response.

wp_remote_retrieve_response_message()

Retrieve only the response message from the raw response.

wp_safe_remote_request()

Retrieve the raw response from a safe HTTP request.