function openid_redirect_http

7.x openid.inc openid_redirect_http($url, $message)
6.x openid.inc openid_redirect_http($url, $message)

Performs an HTTP 302 redirect (for the 1.x protocol).

1 call to openid_redirect_http()
openid_begin in drupal-7.x/modules/openid/openid.module
The initial step of OpenID authentication responsible for the following:

File

drupal-7.x/modules/openid/openid.inc, line 75
OpenID utility functions.

Code

function openid_redirect_http($url, $message) {
  $query = array();
  foreach ($message as $key => $val) {
    $query[] = $key . '=' . urlencode($val);
  }

  $sep = (strpos($url, '?') === FALSE) ? '?' : '&';
  header('Location: ' . $url . $sep . implode('&', $query), TRUE, 302);

  drupal_exit();
}