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
|
<HTML>
<HEAD>
<TITLE>HTTP module for libwww</TITLE></HEAD>
<BODY>
<H1>HyperText Tranfer Protocol Module</H1>
This is the module that handles all communication with HTTP servers. The module
is a part of the <A HREF="Overview.html">CERN Common WWW Library</A>.
<PRE>
#ifndef HTTP_H
#define HTTP_H
#include "HTAccess.h"
</PRE>
<H2>Public Functions</H2>
Theese are the public functions...
<H3>Accessing HTTP-Server</H3>
<PRE>
extern int HTLoadHTTP PARAMS((HTRequest * request));
</PRE>
<H2>Controlling Flags</H2>
The following variables can change the behaviour of the module.
<H3>Cache control flag</H3>
<EM>Note: This variable is now replaced by the (char *) HTCacheDir in
<A HREF="HTAccess.html">HTAccess Module</A></EM> <P>
Turn this off if you don't want HTTP protocol fetches to leave cache files.
extern BOOL HTCacheHTTP;
<H3>Redirections</H3>
The maximum number of redirections is pr. default 10 and is set in the module.
This prevents the library from going into an infinite loop.
<PRE>
extern int HTMaxRedirections;
</PRE>
<H3>Disable/Enable User Identification in HTTP Request</H3>
If a client want the user's email address to be send in the HTTP request
as a <A HREF="http://info.cern.ch/hypertext/WWW/Protocols/HTTP/HTRQ_Headers.html#from">From field</A>
then turn this flag on. The default is off because it might cause security
problems from within a firewall. When enabled, the format used is
<EM>user@host.domain</EM>. The value can be changed, see <A HREF="HTTCP.html#Mailaddress">HTTCP Module</A>.
<PRE>
extern BOOL HTEnableFrom;
</PRE>
<PRE>
#endif /* HTTP_H */
</PRE>
End of HTTP module definition.
</BODY>
</HTML>
|