9add4a0b1c3f0809b5967be69431bc881a9da0de
[m6w6/ext-http] / tests / redirect_002.phpt
1 --TEST--
2 http_redirect() with session
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 session_start();
13 http_redirect('redirect', array('a' => 1), true);
14 ?>
15 --EXPECTF--
16 Status: 302
17 Content-type: text/html
18 X-Powered-By: PHP/%s
19 Set-Cookie: PHPSESSID=%s; path=/
20 Expires: %s
21 Cache-Control: %s
22 Pragma: %s
23 Location: http://localhost/redirect?a=1&PHPSESSID=%s