de6795f649e972470e30694f9dd86b38ea459a14
[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 http_redirect('redirect', array('a' => 1, 'b' => 2));
11 ?>
12 --EXPECTF--
13 Status: 302
14 Content-type: text/html
15 X-Powered-By: PHP/%s
16 Location: http://localhost/redirect?a=1&b=2
17
18 Redirecting to <a href="http://localhost/redirect?a=1&b=2">http://localhost/redirect?a=1&b=2</a>.
19