/usr/share/doc/stilts/sun256/server-client-examples.html is in stilts-doc 3.1.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="sun-style.css">
<title>Client Examples</title>
</head>
<body>
<hr>
<a href="sqlclient.html">Next</a> <a href="secB.16.1.html">Previous</a> <a href="server.html">Up</a> <a href="index.html">Contents</a> <br> <b>Next: </b><a href="sqlclient.html">sqlclient:
Executes SQL statements</a><br>
<b>Up: </b><a href="server.html">server: </a><br>
<b>Previous: </b><a href="secB.16.1.html">Examples</a><br>
<hr>
<h3><a name="server-client-examples">B.16.2 Client Examples</a></h3>
<p>Here are some examples of URLs which can be retrieved from
a server which is running at the base URL
<code>http://localhost:2112/stilts/</code>.
All these use the HTTP GET form of request; the POST form could be
used instead with the same effect.
<dl>
<dt><strong><pre>
http://localhost:2112/stilts/
</pre></strong></dt>
<dd>Returns an HTML page giving version information and some links to
example usages of the server.
</dd>
<dt><strong><pre>
http://localhost:2112/stilts/task/tpipe
</pre></strong></dt>
<dd>Returns an HTML page giving usage instructions for the
<a href="tpipe.html"><code>tpipe</code></a> task.
</dd>
<dt><strong><pre>
http://localhost:2112/stilts/task/calc?expression=21%2b2
</pre></strong></dt>
<dd>Invokes the <a href="calc.html"><code>calc</code></a> task
to return a document containing the text "<code>23</code>".
Note that the plus ("<code>+</code>") sign in the expression has to be
encoded using the sequence "<code>%2b</code>" since "<code>+</code>"
has a special significance in query URLs - see for instance sec 2.2 of
<a href="http://www.ietf.org/rfc/rfc1738.txt">RFC 1738</a>.
</dd>
<dt><strong><pre>
http://localhost:2112/stilts/task/plot2d?in=/data/table1.vot&xdata=RMAG&ydata=BMAG
</pre></strong></dt>
<dd>Invokes the <a href="plot2d.html"><code>plot2d</code></a> task
to return a magnitude-magnitude diagram of the named local file as an image
(probably an <code>image/png</code>).
</dd>
<dt><strong><pre>
http://localhost:2112/stilts/task/tcopy?in=/data/cat.fits&ofmt=votable
</pre></strong></dt>
<dd>Invokes the <a href="tcopy.html"><code>tcopy</code></a> task
to return a translation of the named local FITS file to VOTable format.
</dd>
</dl>
</p>
<hr><a href="sqlclient.html">Next</a> <a href="secB.16.1.html">Previous</a> <a href="server.html">Up</a> <a href="index.html">Contents</a> <br> <b>Next: </b><a href="sqlclient.html">sqlclient:
Executes SQL statements</a><br>
<b>Up: </b><a href="server.html">server: </a><br>
<b>Previous: </b><a href="secB.16.1.html">Examples</a><br>
<hr><i>STILTS - Starlink Tables Infrastructure Library Tool Set<br>Starlink User Note256<br>STILTS web page:
<a href="http://www.starlink.ac.uk/stilts/">http://www.starlink.ac.uk/stilts/</a><br>Author email:
<a href="mailto:m.b.taylor@bristol.ac.uk">m.b.taylor@bristol.ac.uk</a><br>Mailing list:
<a href="mailto:topcat-user@jiscmail.ac.uk">topcat-user@jiscmail.ac.uk</a><br></i></body>
</html>
|