HTTP handling

  1. drupal
    1. 6 includes/common.inc
    2. 7 includes/common.inc
    3. 8 core/includes/common.inc

Functions to properly handle HTTP responses.

Functions & methods

NameDescription
drupal_access_deniedDelivers an "access denied" error to the browser.
drupal_encode_pathEncodes a Drupal path for use in a URL.
drupal_get_destinationPrepares a 'destination' URL query parameter for use with drupal_goto().
drupal_get_query_arraySplits a URL-encoded query string into an array.
drupal_get_query_parametersProcesses a URL query parameter array to remove unwanted elements.
drupal_gotoSends the user to a different Drupal page.
drupal_http_build_queryParses an array into a valid, rawurlencoded query string.
drupal_http_requestPerforms an HTTP request.
drupal_not_foundDelivers a "page not found" error to the browser.
drupal_parse_urlParses a system URL string into an associative array suitable for url().
drupal_site_offlineDelivers a "site is under maintenance" message to the browser.

File

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

Login or register to post comments