Home
last modified time | relevance | path

Searched refs:header (Results 126 – 150 of 218) sorted by path

123456789

/PHP-7.4/ext/standard/tests/file/
H A Dfgets_variation1.phpt14 // include the header for common test function
H A Dfgets_variation2.phpt15 // include the header for common test function
/PHP-7.4/ext/standard/tests/general_functions/
H A Dbug60227_1.phpt2 Bug #60227 (header() cannot detect the multi-line header with CR)
5 header("X-Foo1: a");
6 header("X-Foo2: b\n ");
7 header("X-Foo3: c\r\n ");
8 header("X-Foo4: d\r ");
9 header("X-Foo5: e\rSet-Cookie: ID=123");
13 Warning: Header may not contain more than a single header, new line detected in %s on line %d
H A Dbug60227_2.phpt2 Bug #60227 (header() cannot detect the multi-line header with CR), \r before \n
8 header("X-foo: e\n foo");
12 Warning: Header may not contain more than a single header, new line detected in %s on line %d
H A Dbug60227_3.phpt2 Bug #60227 (header() cannot detect the multi-line header with CR), \0 before \n
8 header("X-Foo6: e\0Set-Cookie: ID=\n123\n d");
H A Dbug60227_4.phpt2 Bug #60227 (header() cannot detect the multi-line header with CR), CRLF
8 header("X-foo: e\r\nfoo");
12 Warning: Header may not contain more than a single header, new line detected in %s on line %d
H A Dbug71891.phpt7 echo 'header';
14 header
H A Dhead.phpt2 header() and friends
14 var_dump(header("HTTP 1.0", true, 200));
19 var_dump(header(""));
20 var_dump(header("", true));
23 var_dump(header("HTTP blah"));
24 var_dump(header("HTTP blah", true));
36 Warning: Cannot modify header information - headers already sent by (output started at %s:%d) in %s…
39 Warning: Cannot modify header information - headers already sent by (output started at %s:%d) in %s…
45 Warning: Cannot modify header information - headers already sent by (output started at %s:%d) in %s…
48 Warning: Cannot modify header information - headers already sent by (output started at %s:%d) in %s…
H A Dheader_redirection_001.phpt6 header('Location: http://example.com/');
H A Dheader_redirection_002.phpt6 header("HTTP/1.1 418 I'm a Teapot");
7 header('Location: http://example.com/');
H A Dheader_redirection_003.phpt2 Location: headers respect the header() response code parameter
6 header('Location: http://example.com/', true, 404);
H A Dheader_redirection_005.phpt6 header('HTTP/1.1 201 Created');
7 header('Location: http://example.com/');
H A Dheader_redirection_006.phpt6 header('HTTP/1.1 300 Multiple Choices');
7 header('Location: http://example.com/');
H A Dheader_redirection_007.phpt6 header('HTTP/1.1 301 Moved Permanently');
7 header('Location: http://example.com/');
H A Dheader_redirection_008.phpt6 header('HTTP/1.1 302 Found');
7 header('Location: http://example.com/');
H A Dheader_redirection_009.phpt6 header('HTTP/1.1 303 See Other');
7 header('Location: http://example.com/');
H A Dheader_redirection_010.phpt6 header('HTTP/1.1 304 Not Modified');
7 header('Location: http://example.com/');
H A Dheader_redirection_011.phpt6 header('HTTP/1.1 305 Use Proxy');
7 header('Location: http://example.com/');
H A Dheader_redirection_012.phpt6 header('HTTP/1.1 307 Temporary Redirect');
7 header('Location: http://example.com/');
H A Dheader_redirection_013.phpt6 header('HTTP/1.1 308 Permanent Redirect');
7 header('Location: http://example.com/');
H A Dheader_redirection_014.phpt6 header('HTTP/1.1 399 Choose Your Own Adventure');
7 header('Location: http://example.com/');
/PHP-7.4/ext/standard/tests/http/
H A Dbug47021.phpt29 'header' => 'Connection: Close'
44 . "Content-Type\r\n" // Deliberately invalid header
68 // Trailing space at end of header
H A Dbug48929.phpt2 Bug #48929 (duplicate \r\n sent after last header line)
33 echo "-- Test: requests with 'header' as array --\n";
35 do_test(array('header' => array('X-Foo: bar', 'Content-Type: text/plain'), 'method' => 'POST', 'con…
37 echo "-- Test: requests with 'header' as string --\n";
39 do_test(array('header' => "X-Foo: bar\r\nContent-Type: text/plain", 'method' => 'POST', 'content' =…
43 -- Test: requests with 'header' as array --
52 -- Test: requests with 'header' as string --
H A Dbug53198.phpt2 Bug #53198 (From: header cannot be changed with ini_set)
H A Dbug61548.phpt11 function do_test($header) {
15 'header' => $header,

Completed in 31 milliseconds

123456789