mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
13 lines
301 B
PHP
13 lines
301 B
PHP
<?php
|
|
|
|
$headers = array();
|
|
|
|
foreach( $_SERVER as $key => $value ) {
|
|
$key = str_replace( "_" , "-" , substr($key,0,5) == "HTTP_" ? substr($key,5) : $key );
|
|
$headers[ $key ] = $value;
|
|
}
|
|
|
|
foreach( explode( "," , $_GET["headers"] ) as $key ) {
|
|
echo "$key: " . @$headers[ strtoupper( $key ) ] . "\n";
|
|
}
|