]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/http_getter/http_getter_const.ml
- the mathql interpreter is not helm-dependent any more
[helm.git] / helm / http_getter / http_getter_const.ml
index 93c2d5d6a8237fa5fedaece08f7bcfcf2f323407..71aed58d3b0256f3919606633461983a098809ba 100644 (file)
@@ -1,5 +1,7 @@
 (*
- *  Copyright (C) 2000, HELM Team.
+ * Copyright (C) 2003:
+ *    Stefano Zacchiroli <zack@cs.unibo.it>
+ *    for the HELM Team http://helm.cs.unibo.it/
  *
  *  This file is part of HELM, an Hypertextual, Electronic
  *  Library of Mathematics, developed at the Computer Science
  *  MA  02111-1307, USA.
  *
  *  For details, see the HELM World-Wide-Web page,
- *  http://cs.unibo.it/helm/.
+ *  http://helm.cs.unibo.it/
  *)
 
-  (* TODO *)
-let usage_string =
+open Printf;;
+
+let version = "0.2.1"
+let conffile = "http_getter.conf.xml"
+
+  (* TODO provide a better usage string *)
+let usage_string configuration =
+  sprintf
 "
 <html>
   <head>
     <title>HTTP Getter's help message</title>
   </head>
   <body>
+    <h1>HTTP Getter, version %s</h1>
+    <h2>Usage information</h2>
     <p>
     Usage: <kbd>http://hostname:getterport/</kbd><em>command</em>
     </p>
@@ -57,6 +67,15 @@ let usage_string =
     <p>
       <b><kbd>getxslt?uri=URI[&patch_dtd=(yes|no)]</kbd></b><br />
     </p>
+    <p>
+      <b><kbd>list_servers</kbd></b><br />
+    </p>
+    <p>
+      <b><kbd>add_server?url=URL&position=POSITION</kbd></b><br />
+    </p>
+    <p>
+      <b><kbd>remove_server?position=POSITION</kbd></b><br />
+    </p>
     <p>
       <b><kbd>update</kbd></b><br />
     </p>
@@ -72,9 +91,12 @@ let usage_string =
     <p>
       <b><kbd>getempty</kbd></b><br />
     </p>
+    <h2>Current configuration</h2>
+    <pre>%s</pre>
   </body>
 </html>
 "
+    version configuration
 
 let empty_xml =
 "<?xml version=\"1.0\"?>