- fire release
[m6w6/ext-http] / tests / redirect_001.phpt
1 --TEST--
2 http_redirect() with params
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 ?>
8 --FILE--
9 <?php
10 include 'log.inc';
11 log_prepare(_REDIR_LOG);
12 http_redirect('redirect', array('a' => 1, 'b' => 2));
13 ?>
14 --EXPECTF--
15 Status: 302
16 Content-type: text/html
17 X-Powered-By: PHP/%s
18 Location: http://localhost/redirect?a=1&b=2
19
20 Redirecting to <a href="http://localhost/redirect?a=1&b=2">http://localhost/redirect?a=1&b=2</a>.
21