2 http_redirect() with params
5 extension_loaded('http') or die('ext/http not available');
6 strncasecmp(PHP_SAPI, 'CLI', 3) or die('cannot run tests with CLI');
10 http_redirect('redirect', array('a' => 1, 'b' => 2));
14 Content-type: text/html
16 Location: http://localhost/redirect?a=1&b=2
18 Redirecting to <a href="http://localhost/redirect?a=1&b=2">http://localhost/redirect?a=1&b=2</a>.