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_DIRECT_WAISis not defined and no gateway has been defined using environment variables
PORTwhen requesting a document from a FTP server. If the application is a proxy server running on top of a firewall machine then
PORTis 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
/tmpwhich obviously is not suited for large amount of data.