Same name and namespace in other branches
  1. 6.x includes/common.inc \http_handling

Functions to properly handle HTTP responses.

File

includes/common.inc, line 397
Common functions that many Drupal modules will need to reference.

Functions

Namesort ascending Location Description
_drupal_should_strip_sensitive_headers_on_http_redirect includes/common.inc Determine whether to strip sensitive headers from a request when redirected.
_drupal_parse_response_status includes/common.inc Splits an HTTP response status line into components.
_drupal_http_use_proxy includes/common.inc Helper function for determining hosts excluded from needing a proxy.
drupal_site_offline includes/common.inc Delivers a "site is under maintenance" message to the browser.
drupal_parse_url includes/common.inc Parses a URL string into its path, query, and fragment components.
drupal_not_found includes/common.inc Delivers a "page not found" error to the browser.
drupal_http_request includes/common.inc Performs an HTTP request.
drupal_http_build_query includes/common.inc Parses an array into a valid, rawurlencoded query string.
drupal_goto includes/common.inc Sends the user to a different page.
drupal_get_query_parameters includes/common.inc Processes a URL query parameter array to remove unwanted elements.
drupal_get_query_array includes/common.inc Splits a URL-encoded query string into an array.
drupal_get_destination includes/common.inc Prepares a 'destination' URL query parameter for use with drupal_goto().
drupal_encode_path includes/common.inc Encodes a Drupal path for use in a URL.
drupal_access_denied includes/common.inc Delivers an "access denied" error to the browser.