Works a bit more
[erwise] / Cl / WWWLibrary / HTTP.h
1 /*      HyperText Tranfer Protocol                                      HTTP.h
2 **      ==========================
3 */
4
5 #ifndef HTTP_H
6 #define HTTP_H
7
8 #include "HTAnchor.h"
9
10 /*              Open Socket for reading from HTTP Server        HTTP_get()
11 **              ========================================
12 **
13 **      Given a hypertext address, this routine opens a socket to the server,
14 **      sends the "get" command to ask for the node, and then returns the
15 **      socket to the caller. The socket must later be closed by the caller.
16 **
17 ** On entry,
18 **      arg     is the hypertext reference of the article to be loaded.
19 ** On exit,
20 **      returns >=0     If no error, a good socket number
21 **              <0      Error.
22 **
23 */
24 #ifdef __STDC__
25 extern int HTTP_Get(const char * arg);
26 #else
27 extern int HTTP_Get();
28 #endif
29
30 /*      Load Document using HTTP
31 **      ------------------------
32 */
33
34 extern int HTLoadHTTP PARAMS((CONST char *arg,
35         CONST char * gateway,
36         HTParentAnchor * anAnchor,
37         int diag));
38
39 #endif /* HTTP_H */