diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-08-16 22:29:14 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-08-16 22:29:14 +1200 |
commit | 13cb0cab90a85822610e24725b5fb23ab1aa681c (patch) | |
tree | 3057b4e2a085626212e2a4bbe10a344e0fb79235 /libpathod/templates | |
parent | ea2ca98bea2334d7ad925a929db1a688b9ad7e9c (diff) | |
download | mitmproxy-13cb0cab90a85822610e24725b5fb23ab1aa681c.tar.gz mitmproxy-13cb0cab90a85822610e24725b5fb23ab1aa681c.tar.bz2 mitmproxy-13cb0cab90a85822610e24725b5fb23ab1aa681c.zip |
Tweak front page: correct public pathod URL, more illustrative examples.
Diffstat (limited to 'libpathod/templates')
-rw-r--r-- | libpathod/templates/index.html | 8 | ||||
-rw-r--r-- | libpathod/templates/response_previewform.html | 9 |
2 files changed, 11 insertions, 6 deletions
diff --git a/libpathod/templates/index.html b/libpathod/templates/index.html index 1fabcae0..8a47a2bf 100644 --- a/libpathod/templates/index.html +++ b/libpathod/templates/index.html @@ -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> diff --git a/libpathod/templates/response_previewform.html b/libpathod/templates/response_previewform.html index 6c2efded..74e21362 100644 --- a/libpathod/templates/response_previewform.html +++ b/libpathod/templates/response_previewform.html @@ -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"="';drop table servers;"'>200:b@100:h"Etag"="';drop table servers;"</a></td> |