summaryrefslogtreecommitdiff
path: root/header/index.php
diff options
context:
space:
mode:
authorroot2014-11-17 01:42:48 +0100
committerroot2014-11-17 01:42:48 +0100
commitf7755964e8703d66cee123a18519a07d49df0ae0 (patch)
treed86a933802e200cf5d4e487afbd9d8bb121f5146 /header/index.php
parent4168f7aff52f6e7cf7320e42252227dac5169c4a (diff)
downloadtools.iamfabulous.de-f7755964e8703d66cee123a18519a07d49df0ae0.tar.gz
modified for use case
Diffstat (limited to 'header/index.php')
-rw-r--r--header/index.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/header/index.php b/header/index.php
index 1a027ab..a41912a 100644
--- a/header/index.php
+++ b/header/index.php
@@ -38,7 +38,7 @@ if ( $set ){
$redis->ping();
$redis->select(9);
- $key = md5( $url . serialize($customHeader) );
+ $key = md5( $url . $method . serialize($customHeader) );
if( $redis->exists( $key ) ){
return unserialize( $redis->get( $key ) );
@@ -81,7 +81,7 @@ if ( $set ){
return $result;
}
- if ( ! isset($_REQUEST['method']) || $_REQUEST['method'] != "" ){
+ if ( ! isset($_REQUEST['method']) || $_REQUEST['method'] == "" ){
$_REQUEST['method'] = 'get';
} else {
$_REQUEST['method'] = strtolower($_REQUEST['method']);
@@ -112,13 +112,13 @@ Host: "<u><?php echo strtolower(htmlentities($header_info[2])); ?></u>"</pre></h
<?php
} else {
?>
- <h3>Retrieve HTTP Headers Online!</h3>
- <p>Check the response headers for websites. <br> Enter a URL and hit the submit button.</p>
- <br>
<form class="form-horizontal">
<fieldset>
-<legend></legend>
+<legend>
+ <h1>Retrieve HTTP Headers Online!</h1>
+ <p>Check the response headers for websites. </p>
+</legend>
<!-- Form Name -->
@@ -132,8 +132,9 @@ Host: "<u><?php echo strtolower(htmlentities($header_info[2])); ?></u>"</pre></h
<!-- Multiple Radios (inline) -->
<div class="form-group">
- <label class="col-md-4 control-label" for="method">Method</label>
+ <label class="col-md-4 control-label" for="method">Request method</label>
<div class="col-md-4">
+ <div class="text-left">
<label class="radio-inline" for="method-0">
<input name="method" id="method-0" value="GET" checked="checked" type="radio">
GET
@@ -146,6 +147,7 @@ Host: "<u><?php echo strtolower(htmlentities($header_info[2])); ?></u>"</pre></h
<input name="method" id="method-2" value="HEAD" type="radio">
HEAD
</label>
+ </div>
</div>
</div>
@@ -162,7 +164,7 @@ Host: "<u><?php echo strtolower(htmlentities($header_info[2])); ?></u>"</pre></h
<button type="button" class="btn btn-default addButton" title="Add more header." onclick="addInput('moreInput')"><i class="fa fa-plus"></i></button>
</span>
</div>
- <span class="help-block text-left">Add any header, which are sent to the server.</span>
+ <span class="help-block text-left">Add additional header, which are sent with the request.</span>
</div>
</div>