HTTP handling
- 7.x drupal-7.x/includes/common.inc http_handling
- 6.x drupal-6.x/includes/common.inc http_handling
Functions to properly handle HTTP responses.
File
- drupal-7.x/
includes/ common.inc, line 397 - Common functions that many Drupal modules will need to reference.
Functions
Name | Location | Description |
---|---|---|
drupal_access_denied |
drupal-7.x/ |
Delivers an "access denied" error to the browser. |
drupal_encode_path |
drupal-7.x/ |
Encodes a Drupal path for use in a URL. |
drupal_get_destination |
drupal-7.x/ |
Prepares a 'destination' URL query parameter for use with drupal_goto(). |
drupal_get_query_array |
drupal-7.x/ |
Splits a URL-encoded query string into an array. |
drupal_get_query_parameters |
drupal-7.x/ |
Processes a URL query parameter array to remove unwanted elements. |
drupal_goto |
drupal-7.x/ |
Sends the user to a different page. |
drupal_http_build_query |
drupal-7.x/ |
Parses an array into a valid, rawurlencoded query string. |
drupal_http_request |
drupal-7.x/ |
Performs an HTTP request. |
drupal_not_found |
drupal-7.x/ |
Delivers a "page not found" error to the browser. |
drupal_parse_url |
drupal-7.x/ |
Parses a system URL string into an associative array suitable for url(). |
drupal_site_offline |
drupal-7.x/ |
Delivers a "site is under maintenance" message to the browser. |
_drupal_http_use_proxy |
drupal-7.x/ |
Helper function for determining hosts excluded from needing a proxy. |