function openid_redirect_http

Same name and namespace in other branches
  1. 7.x drupal-7.x/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 drupal-6.x/modules/openid/openid.module
The initial step of OpenID authentication responsible for the following:

Archivo

drupal-6.x/modules/openid/openid.inc, line 28
OpenID utility functions.

Código

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;
}