Tweak front page: correct public pathod URL, more illustrative examples.

This commit is contained in:
Aldo Cortesi 2012-08-16 22:29:14 +12:00
parent ea2ca98bea
commit 13cb0cab90
2 changed files with 11 additions and 6 deletions

View File

@ -42,7 +42,7 @@
<p>A live, public instance of pathod</p>
<p><b>http://p.pathod.org/</b><input
<p><b>http://public.pathod.net/</b><input
style="width: 14em"
id="publicspec"
name="spec"
@ -50,7 +50,7 @@
value="{{spec}}"
placeholder="code[msg]:[features]"
>
<a href="#" id="submitspec" class="btn">go</a>
<a id="gopublic" class="btn">go</a>
</p>
<p>Please use responsibly. There are some restrictions on the
@ -58,8 +58,8 @@
<script>
$(function(){
$("#submitspec").click(function(){
document.location = "http://p.pathod.org/" + $("#publicspec").val()
$("#gopublic").click(function(){
document.location = "http://public.pathod.net/" + $("#publicspec").val()
});
});
</script>

View File

@ -23,11 +23,16 @@
<tbody >
<tr>
<td><a href="/response_preview?spec=200">200</a></td>
<td>A basic HTTP 200 response</td>
<td>A basic HTTP 200 response (this will hang).</td>
</tr>
<tr>
<td><a href="/response_preview?spec=200:da">200:da</a></td>
<td>Server-side disconnect after all content has been sent.</td>
</tr>
<tr>
<td><a href="/response_preview?spec=200:b@100">200:b@100</a></td>
<td>100 random bytes as the body</td>
<td>100 random bytes as the body. A Content-Lenght header is
added, so the disconnect is no longer needed.</td>
</tr>
<tr>
<td><a href='/response_preview?spec=200:b@100:h"Server"="&apos;;drop table servers;"'>200:b@100:h"Etag"="';drop table servers;"</a></td>