3 header( "Sample-Header: Hello World" );
7 foreach( $_SERVER as $key => $value ) {
9 if ( substr( $key , 0 , 5 ) == "HTTP_" ) {
11 $key = str_replace( "_" , "-" , substr( $key , 5) );
12 $headers[ $key ] = $value;
18 foreach( explode( "_" , $_GET[ "keys" ] ) as $key ) {
19 echo "$key: " . $headers[ strtoupper( $key ) ] . "\n";