7.2 pserun

Usage: pserun [OPTIONS] FILE

Runs the specified servlet file as though it was requested through the web server, and prints the output.

OPTIONS can be:

-a,--args=QUERY_STRING
Specify query arguments for the servlet.
-c,--config=FILE
Use a different pse.conf file than the default.
-h,--help
This help message.
-m,--method=GET|POST
Specify the retrieval method for the servlet.
-n,--noheaders
Do not output HTTP headers.
-o,--cookie=COOKIE
Specify a Cookie according to RFC 2109.
-s,--sessionid=ID
Specify session ID to simulate a PSE session.

FILE is the path to a servlet source file (.pt file), even if only the compiled version is available (as in HTTP requests).

If --method=POST is specified, then POST data will be read from standard input, which must be in application/x-www-form-urlencoded format.