~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/netwerk/testserver/docs/help.html

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<head>
 
3
   <title>Help file for HTTP TestServer/1.1</title>
 
4
</head>
 
5
<body>
 
6
 
 
7
<h3> Help file for HTTP TestServer/1.1</h3>
 
8
The HTTP TestServer is a simple server written to test some special HTTP
 
9
behaviour. It is based on a script file (docs/urlmap) and can be easily
 
10
extended to add special response situations. <P>
 
11
 
 
12
To compile this you will need any version of JDK >1.1.2. Just compile them
 
13
with command- <PRE>javac *.java</PRE>
 
14
And then run the server with command- <PRE>java TestServer [port]</PRE>
 
15
The port is optional and if not specified defaults to 4321.
 
16
Assuming that the server is running on http://foo:4321/
 
17
Use the following URLs to retrieve special responses. In order to create
 
18
your own special case- telnet to foo, and edit the docs/urlmap file to
 
19
handle special cases and then add info here about it.
 
20
<P>
 
21
<center><table WIDTH="80%" >
 
22
<tr>
 
23
<td><a href="/help">http://foo:4321/help</a></td>
 
24
<td>This help file.</td>
 
25
</tr>
 
26
 
 
27
<tr>
 
28
<td><a href="/">http://foo:4321/</a></td>
 
29
<td>Default echo of the server. Prints the request out.</td>
 
30
</tr>
 
31
</table></center>
 
32
The subsequent ones may be combined to generate multiple results. NOTE: This 
 
33
hasn't been fixed as yet. So it wont work for now. But if it did... 
 
34
You can try something fancy like- http://foo:4321/multi&close&both
 
35
 
 
36
<center><table WIDTH="80%" >
 
37
 
 
38
<tr>
 
39
<td><a href="/multi">http://foo:4321/multi</a></td>
 
40
<td>Returns a multipart message.&nbsp;</td>
 
41
</tr>
 
42
 
 
43
<tr>
 
44
<td><a href="/close">http://foo:4321/close</a></td>
 
45
<td>Returns "Connection: close" in a response header.</td>
 
46
</tr>
 
47
 
 
48
<tr>
 
49
<td><a href="/both">http://foo:4321/both</a></td>
 
50
<td>Returns the request as well as the response headers.</td>
 
51
</tr>
 
52
</table></center>
 
53
 
 
54
<p>If you need any more help with running this server, or have suggestions
 
55
to improve it let <a href="mailto:gagan@netscape.com?subject=HTTP TestServer/1.1">me</a>
 
56
know.
 
57
</body>
 
58
</html>