X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Fdata%2Fheaders.php;h=f2c21c0ccffcd316cd578a800aa7433fd7c20c94;hb=974637d639a06a050e11d87677d1c1c80bed709d;hp=598cadcde00f40052810894498523af453ceb887;hpb=ab3ba4a81252c4357a7aab5f24d765d41d47986e;p=jquery.git diff --git a/test/data/headers.php b/test/data/headers.php index 598cadc..f2c21c0 100644 --- a/test/data/headers.php +++ b/test/data/headers.php @@ -1,5 +1,20 @@ $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"; +}