The Library has a huge amount of trace messages that are very useful when debugging an application. In this section we will have a look at how to use the trace messages and also what preprocessor defines that can be used to modify the behavior of the Library.
The Library has a large set of trace messages that can be enabled in various ways. They are often an important help to the application programmer in order to debug an application and this is the reason why they are trated in this User's Guide.
Adding and Deleting Trace Messages
Most of the preprocessor defines in the Library are platform dependent that are determined as a result of the configure script. However, there are some few defines that on a platform independent basis can change the default behavior of the Library.
HT_REENTRANT
- defined using the
configure script
strtok_r
. The default value is OFF.
HT_DIRECT_WAIS
- defined using the
configure script
HT_DEFAULT_WAIS_GATEWAY
HT_DIRECT_WAIS
is not defined and no gateway has been defined
using environment variables
HT_FTP_NO_PORT
PASV
and PORT
when
requesting a document from a FTP server. If the application is a proxy server
running on top of a firewall machine then PORT
is normally not
allowed as a firewall does not accept incoming connections on arbitrary ports.
This define will disable the use of PORT
. The default value
is to use PORT
if PASV
fails.
WWWLIB_SIG
HT_TMP_ROOT
/tmp
which obviously is
not suited for large amount of data.
HT_CACHE_ROOT
/tmp
.