Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Location: headers override non-201 and 3xx response codes --CGI-- --FILE-- <?php ..
Decoded Output download
--TEST--
Location: headers override non-201 and 3xx response codes
--CGI--
--FILE--
<?php
header("HTTP/1.1 418 I'm a Teapot");
header('Location: http://example.com/');
?>
--EXPECTHEADERS--
Status: 302 Found
Location: http://example.com/
--EXPECT--
Did this file decode correctly?
Original Code
--TEST--
Location: headers override non-201 and 3xx response codes
--CGI--
--FILE--
<?php
header("HTTP/1.1 418 I'm a Teapot");
header('Location: http://example.com/');
?>
--EXPECTHEADERS--
Status: 302 Found
Location: http://example.com/
--EXPECT--
Function Calls
header | 1 |
Stats
MD5 | 37207435b4e5a9d40d9bf896f80ed9ac |
Eval Count | 0 |
Decode Time | 128 ms |