You are here

function openid_redirect_http in Drupal 6

Same name and namespace in other branches
  1. 7 modules/openid/openid.inc \openid_redirect_http()

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

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

File

modules/openid/openid.inc, line 28
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);
  exit;
}