Skip navigation

HTTP handling

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

Functions to properly handle HTTP responses.

Functions & methods

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.


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