]> matita.cs.unibo.it Git - helm.git/blob - helm/http_getter/http_getter_const.ml
cfa21fe913420cfa1c72421f2be9723f174d35f1
[helm.git] / helm / http_getter / http_getter_const.ml
1 (*
2  *  Copyright (C) 2003, HELM Team.
3  *
4  *  This file is part of HELM, an Hypertextual, Electronic
5  *  Library of Mathematics, developed at the Computer Science
6  *  Department, University of Bologna, Italy.
7  *
8  *  HELM is free software; you can redistribute it and/or
9  *  modify it under the terms of the GNU General Public License
10  *  as published by the Free Software Foundation; either version 2
11  *  of the License, or (at your option) any later version.
12  *
13  *  HELM is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with HELM; if not, write to the Free Software
20  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston,
21  *  MA  02111-1307, USA.
22  *
23  *  For details, see the HELM World-Wide-Web page,
24  *  http://cs.unibo.it/helm/.
25  *)
26
27   (* TODO provide a better usage string *)
28 let usage_string =
29 "
30 <html>
31   <head>
32     <title>HTTP Getter's help message</title>
33   </head>
34   <body>
35     <p>
36     Usage: <kbd>http://hostname:getterport/</kbd><em>command</em>
37     </p>
38     <p>
39     Available commands:
40     </p>
41     <p>
42       <b><kbd>help</kbd></b><br />
43       display this help message
44     </p>
45     <p>
46       <b><kbd>getxml?uri=URI[&format=(normal|gz)][&patch_dtd=(yes|no)]</kbd></b><br />
47     </p>
48     <p>
49       <b><kbd>register?uri=URI&url=URL</kbd></b><br />
50     </p>
51     <p>
52       <b><kbd>resolve?uri=URI</kbd></b><br />
53     </p>
54     <p>
55       <b><kbd>getdtd?uri=URI[&patch_dtd=(yes|no)]</kbd></b><br />
56     </p>
57     <p>
58       <b><kbd>getxslt?uri=URI[&patch_dtd=(yes|no)]</kbd></b><br />
59     </p>
60     <p>
61       <b><kbd>update</kbd></b><br />
62     </p>
63     <p>
64       <b><kbd>getalluris</kbd></b><br />
65     </p>
66     <p>
67       <b><kbd>getallrdfuris</kbd></b><br />
68     </p>
69     <p>
70       <b><kbd>ls?baseuri=URI&format=(txt|xml)</kbd></b><br />
71     </p>
72     <p>
73       <b><kbd>getempty</kbd></b><br />
74     </p>
75   </body>
76 </html>
77 "
78
79 let empty_xml =
80 "<?xml version=\"1.0\"?>
81 <!DOCTYPE empty [
82   <!ELEMENT empty EMPTY>
83 ]>
84 <empty />
85 "
86