8.8

Table Of Contents
Since this part of the processing is handled by PlanetPress or PreS Workflow, you can use its
renowned feature set to do virtually anything.
For detailed information on how to use and configure the HTTP Server Input task to reply to
POST requests, refer to PlanetPress Workflow documentation. Also refer to the same
documentation to know how to add those tasks that will let you send or process the received
data as required.
The process that replies to document requests from Capture OnTheGo users
The previous process informed the Capture OnTheGo Server that a new document was now
available. So Capture OnTheGo App users that have access to this document can now see it
and download it from a PlanetPress HTTP Server or a regular Web server. Based on the
document’s Capture OnTheGo settings (for more information on this, refer to "The process that
publishes a document" on page191), the document is either automatically downloaded, or it
can be manually downloaded. The actual download of this document is done via a PlanetPress
Workflow process that includes an HTTP Server Input task.
The example below is divided into three parts: receiving the request, fetching the document and
sending the document.
Receiving the request
To begin with, the HTTP Server Input task waits for requests. When a request is received and
authenticated, the next task down stores the request’s parameters in a variable. The variables
content is then processed to remove any malicious code. The following task completes the
document’s path by adding the location of the server where the document is actually stored.
Page 194