Skip navigation
Help

HTTP handling

  1. drupal
    1. 6 drupal/includes/common.inc
    2. 7 drupal/includes/common.inc

Functions to properly handle HTTP responses.

Functions & methods

NameDescription
drupal_access_deniedDeliver a "access denied" error to the browser.
drupal_encode_pathEncodes a Drupal path for use in a URL.
drupal_get_destinationPrepare a 'destination' URL query parameter for use in combination with drupal_goto().
drupal_get_query_arraySplit an URL-encoded query string into an array.
drupal_get_query_parametersProcess a URL query parameter array to remove unwanted elements.
drupal_gotoSend the user to a different Drupal page.
drupal_http_build_queryParse an array into a valid, rawurlencoded query string.
drupal_http_requestPerform an HTTP request.
drupal_not_foundDeliver a "page not found" error to the browser.
drupal_parse_urlWrapper around parse_url() to parse a system URL string into an associative array, suitable for url().
drupal_site_offlineDeliver a "site is under maintenance" message to the browser.

File

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