mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
21 lines
359 B
PHP
21 lines
359 B
PHP
<?php
|
|
|
|
header( "Sample-Header: Hello World" );
|
|
|
|
$headers = array();
|
|
|
|
foreach( $_SERVER as $key => $value ) {
|
|
|
|
if ( substr( $key , 0 , 5 ) == "HTTP_" ) {
|
|
|
|
$key = str_replace( "_" , "-" , substr( $key , 5) );
|
|
$headers[ $key ] = $value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
foreach( explode( "_" , $_GET[ "keys" ] ) as $key ) {
|
|
echo "$key: " . $headers[ strtoupper( $key ) ] . "\n";
|
|
}
|