Annotation of libwww/Library/src/HTTP.html, revision 2.15.2.1
2.6 timbl 1: <HTML>
2: <HEAD>
2.13 frystyk 3: <TITLE>Multithreaded HTTP Client</TITLE>
4: </HEAD>
2.6 timbl 5: <BODY>
2.9 frystyk 6:
2.11 frystyk 7: <H1>Multi Threaded HyperText Tranfer Protocol Module</H1>
2.13 frystyk 8:
9: <PRE>
10: /*
11: ** (c) COPYRIGHT CERN 1994.
12: ** Please first read the full copyright statement in the file COPYRIGH.
13: */
14: </PRE>
2.11 frystyk 15:
16: This is actually a very small definition file as almost everything is
17: set up elsewhere. <P>
18:
19: This module is implemented by <A HREF="HTTP.c">HTTP.c</A>, and it is a
20: part of the <A NAME="z10"
21: HREF="http://info.cern.ch/hypertext/WWW/Library/User/Guide/Guide.html">Library
22: of Common Code</A>. <P>
2.9 frystyk 23:
24: <PRE>
25: #ifndef HTTP_H
2.1 timbl 26: #define HTTP_H
2.15 frystyk 27:
2.12 frystyk 28: #include "HTAccess.h"
2.7 timbl 29: </PRE>
2.9 frystyk 30:
31: <H2>Controlling Flags</H2>
32:
33: The following variables can change the behaviour of the module.
34:
35: <H3>Cache control flag</H3>
36:
2.11 frystyk 37: <EM>Note: This variable is now replaced by the (char *) HTCacheDir in
2.10 frystyk 38: <A HREF="HTAccess.html">HTAccess Module</A></EM> <P>
2.9 frystyk 39:
40: Turn this off if you don't want HTTP protocol fetches to leave cache files.
2.8 frystyk 41: extern BOOL HTCacheHTTP;
2.1 timbl 42:
2.9 frystyk 43: <H3>Redirections</H3>
2.7 timbl 44:
2.11 frystyk 45: The maximum number of redirections is pr. default 10 and is set in the
46: module. This prevents the library from going into an infinite loop
47: which is kind of nice :-)
2.9 frystyk 48:
49: <PRE>
50: extern int HTMaxRedirections;
2.10 frystyk 51: </PRE>
52:
53: <H3>Disable/Enable User Identification in HTTP Request</H3>
54:
2.11 frystyk 55: If a client want the user's email address to be send in the HTTP
56: request as a <A
57: HREF="http://info.cern.ch/hypertext/WWW/Protocols/HTTP/HTRQ_Headers.html#from">
58: From field</A> then turn this flag on. The default is off because it
59: might cause security problems from within a firewall. When enabled,
60: the format used is <EM>user@host.domain</EM>. The value can be
61: changed, see <A HREF="HTTCP.html#Mailaddress">HTTCP Module</A>.
2.10 frystyk 62:
63: <PRE>
64: extern BOOL HTEnableFrom;
2.15.2.1! cbrooks 65: typedef char * (*PFPC) PARAMS((void));
! 66: extern PFPC HTAddUserHeaders PARAMS((PFPC arg));
2.9 frystyk 67: </PRE>
68:
69: <PRE>
2.6 timbl 70: #endif /* HTTP_H */
2.9 frystyk 71: </PRE>
2.1 timbl 72:
2.9 frystyk 73: End of HTTP module definition.
74: </BODY>
2.6 timbl 75: </HTML>
Webmaster