- fire release
[m6w6/ext-http] / tests / redirect_003.phpt
1 --TEST--
2 http_redirect() permanent
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', null, false, true);
13 ?>
14 --EXPECTF--
15 Status: 301
16 Content-type: text/html
17 X-Powered-By: PHP/%s
18 Location: http://localhost/redirect
19
20 Redirecting to <a href="http://localhost/redirect">http://localhost/redirect</a>.
21