Sha256: 179d7417f3af6ce0e6f66523f03b6c94932055416f73c9ae4822a1d58fe5b36c

Contents?: true

Size: 424 Bytes

Versions: 12

Compression:

Stored size: 424 Bytes

Contents

<?php

header( "Sample-Header: Hello World" );
header( "Empty-Header: " );
header( "Sample-Header2: Hello World 2" );

$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[ "keys" ] ) as $key ) {
	echo "$key: " . @$headers[ strtoupper( $key ) ] . "\n";
}

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
lady_josephine-0.7.0 vendor/assets/components/jquery/test/data/headers.php
lady_josephine-0.6.3 vendor/assets/components/jquery/test/data/headers.php
lady_josephine-0.6.2 vendor/assets/components/jquery/test/data/headers.php
lady_josephine-0.6.1 vendor/assets/components/jquery/test/data/headers.php
lady_josephine-0.6.0 vendor/assets/components/jquery/test/data/headers.php
lady_josephine-0.5.0 vendor/assets/components/jquery/test/data/headers.php
lady_josephine-0.0.4 vendor/assets/components/jquery/test/data/headers.php
lady_josephine-0.0.3 vendor/assets/components/jquery/test/data/headers.php
lady_josephine-0.0.2 vendor/assets/components/jquery/test/data/headers.php
lady_josephine-0.0.1 vendor/assets/components/jquery/test/data/headers.php
guff-compass-1.0.0 demo/bower_components/jquery/test/data/headers.php
guff-compass-0.7.0 demo/bower_components/jquery/test/data/headers.php