ApplicGate
(v12.0.9111.30500 started 2024-12-11 16:09:49 on VM2)

Keyword POST:string to support processing of POST data:

--------- If GatewayIP2 is web: saves POST data to file -------------------

Format of string is "path|ext", ext is optional.
path is filename or full path of file e.g. "D:\data\postfile.txt"
If end of the filename is * (or *$ , meaning of $ see below), * is replaced by the URL received.
If path is * or *$, the directory name is retrieved from the keyword DIR. If DIR is not specified: Subdirectory "store" of the current directory is used.
If ext is specified, it will be added to the name of the temporary file (instead of the extension of the file(if any))
If ext consists of spaces: no extension will be added
Example:
target URL: https://server.net/MyFile.txt
POST:"D:\data\myDir\*"
Filename to store data: "D:\data\myDir\MyFile.txt" .
The received data will be written to a temporary file (a timestamp "$yyyyMMddHHmmssfffF" e.g. $20230703090616000F will be appended to the filename).
- fff is a serial number to force uniqueness
After successful transfer the file will be renamed to the target name.
Existing files will be replaced.
If the end of the filename in the POST keyword is $, the temporary file will not be renamed. $ and timestamp remains appended to the filename:
e.g. MyFile.txt$20230405202744000F.txt ... file extension will be added if there is any
If ext is specified in the POST keyword, it will be added to the temporary filename, e.g.
POST:"D:\data\myDir\*$|.rtf", then the filename will be MyFile.txt$202304052027440001F.rtf

As client the console application "httpPOST.exe inputfile targetURL [certificate.cer]" can be used.
Usage of client certificates is optional.

See also File Synchronization via Web Site.

Keyword START:filename[!M]
After successful upload the specified filename will be executed,
- first argument is the name of the uploaded file,
- second argument is the IP address of the source,
- third argument is the email name if keyword CCR has been specified.
- !M is optional: The internal mail thread will be started after execution of the file.
Special meaning if "START:loadad" is specified:
- the command loadad will be executed to load AD user data from ADusers.csv

Keyword POSTR:filename
- specified html file will be returned after successful post

For further processing options see CGI
.
--------- If GatewayIP2 is echo: logs POST data to logfile -------------------

Prerequisite: Keyword HTTP must be defined.
string parameter of POST keyword may be a list of strings (separated by | ), e.g. POST:"ABC|123"
logging of data must be enabled, use keyword LGD for automatic creation of the logfile
If a POST request is received and the POST data starts with on of the strings specified, the POST data will be written to the data logfile.
If there are no strings after POST, any POST data will be logged.
If LOG:2 all data will be logged (use this for debugging)


ApplicGate Logo  reinhold.leitner@applicgate.com (C) December 2024
www.applicgate.com