Added the test server for testing anamalous responses from HTTP servers. For more details read http://lxr.mozilla.org/mozilla/source/netwerk/testserver/docs/help.html
git-svn-id: svn://10.0.0.236/trunk@34768 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
58
mozilla/netwerk/testserver/docs/help.html
Normal file
58
mozilla/netwerk/testserver/docs/help.html
Normal file
@@ -0,0 +1,58 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Help file for HTTP TestServer/1.1</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h3> Help file for HTTP TestServer/1.1</h3>
|
||||
The HTTP TestServer is a simple server written to test some special HTTP
|
||||
behaviour. It is based on a script file (docs/urlmap) and can be easily
|
||||
extended to add special response situations. <P>
|
||||
|
||||
To compile this you will need any version of JDK >1.1.2. Just compile them
|
||||
with command- <PRE>javac *.java</PRE>
|
||||
And then run the server with command- <PRE>java TestServer [port]</PRE>
|
||||
The port is optional and if not specified defaults to 4321.
|
||||
Assuming that the server is running on http://foo:4321/
|
||||
Use the following URLs to retrieve special responses. In order to create
|
||||
your own special case- telnet to foo, and edit the docs/urlmap file to
|
||||
handle special cases and then add info here about it.
|
||||
<P>
|
||||
<center><table WIDTH="80%" >
|
||||
<tr>
|
||||
<td><a href="/help">http://foo:4321/help</a></td>
|
||||
<td>This help file.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><a href="/">http://foo:4321/</a></td>
|
||||
<td>Default echo of the server. Prints the request out.</td>
|
||||
</tr>
|
||||
</table></center>
|
||||
The subsequent ones may be combined to generate multiple results. NOTE: This
|
||||
hasn't been fixed as yet. So it wont work for now. But if it did...
|
||||
You can try something fancy like- http://foo:4321/multi&close&both
|
||||
|
||||
<center><table WIDTH="80%" >
|
||||
|
||||
<tr>
|
||||
<td><a href="/multi">http://foo:4321/multi</a></td>
|
||||
<td>Returns a multipart message. </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><a href="/close">http://foo:4321/close</a></td>
|
||||
<td>Returns "Connection: close" in a response header.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><a href="/both">http://foo:4321/both</a></td>
|
||||
<td>Returns the request as well as the response headers.</td>
|
||||
</tr>
|
||||
</table></center>
|
||||
|
||||
<p>If you need any more help with running this server, or have suggestions
|
||||
to improve it let <a href="mailto:gagan@netscape.com?subject=HTTP TestServer/1.1">me</a>
|
||||
know.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user