8.8

Table Of Contents
Note: To make sure that documents are served only to users of the COTG app, the Input task
authenticates download requests, using the authentication key of the COTG repository. This
key can be found in the Parameters section of the COTG Web Administration Panel.
Enter the key in the HTTP Server Input 2 User Options in the Workflow preferences (see HTTP
Server Input 2 User Options (PreS) or HTTP Server Input 2 User Options (PlanetPress)).
For further information on how to use and configure the HTTP Server Input task to serve
documents over the internet, refer to the Workflow documentation.
Finding the document
The next part of the process checks whether the requested document can be found or not. If the
requested document is less than zero kilobytes in size, it is assumed to be non-existent. When
this is the case, a File Not Found document is created, sent to the requesting client, and then
deleted from the server.
Sending the document
If the requested document is more than zero kilobytes in size, then we know it does exist. In the
third part of our process, the document is actually sent to the requesting client. The document is
first loaded, renamed to the original name included in the request (the full path is reduced to the
file name), and sent to the client. Finally, the document is deleted from the server.
Page 195