* added HTTPi_Request::getResponseCode()
[m6w6/ext-http] / tests / 020_redirect.phpt
1 --TEST--
2 http_redirect() with params
3 --SKIPIF--
4 <?php
5 extension_loaded('http') or die('ext/http not available');
6 strncasecmp(PHP_SAPI, 'CLI', 3) or die('cannot run tests with CLI');
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