/* ** (c) COPYRIGHT MIT 1995. ** Please first read the full copyright statement in the file COPYRIGH. */This module keeps a list of proxies and gateways to be contacted on a request in stead of requesting it directly from the origin server. The module replaces the old system of environment variables for gateways and proxies. However for backward compatibility there is a function that reads the environment variables at start up. Note that there is a difference between a proxy and a gateway - the difference is the way the URL is set up in the RequestLine of the HTTP request. If the original, full URL looks like
"http://www.w3.org/test.html"
then the result will for a
proxy is "http://www.w3.org/test.html"
and a gateway
"/www.w3.org/test.html"
The module is implemented by HTProxy.c, and it is a part of the W3C Reference Library.
#ifndef HTPROXY_H #define HTPROXY_H #include "HTList.h"
http://proxy.w3.org:8001
but
domain name is not required. If an entry exists for this access then
delete it and use the new one.
extern BOOL HTProxy_setProxy PARAMS((CONST char *access,CONST char *proxy)); extern BOOL HTProxy_deleteProxy NOPARAMS;The remove function removes all registered proxies. This is automatically done in HTLibTerminate()
w3.org
and www.close.com
extern BOOL HTProxy_setNoProxy PARAMS((CONST char *host, CONST char *access, unsigned port)); extern BOOL HTProxy_deleteNoProxy NOPARAMS;The remove function removes all entries in the list. This is automatically done in HTLibTerminate()
extern char * HTProxy_getProxy PARAMS((CONST char * url));
http://gateway.w3.org:8001
but domain name is not required. If an entry exists for this access
then delete it and use the new one.
extern BOOL HTProxy_setGateway PARAMS((CONST char *access, CONST char *gate)); extern BOOL HTProxy_deleteGateway NOPARAMS;The remove function removes all registered proxies. This is automatically done in HTLibTerminate()
extern char * HTProxy_getGateway PARAMS((CONST char * url));
extern void HTProxy_getEnvVar NOPARAMS;
#endif /* HTPROXY_H */End of HTProxy declaration