.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.8. .TH PREQUEST3 "1" "February 2019" "prequest3 1.10.2+dfsg-2" "User Commands" .SH NAME prequest3 \- Python 3 Pyramid command .SH DESCRIPTION usage: prequest3 [\-h] [\-n NAME] [\-\-header NAME:VALUE] [\-d] .IP [\-m {GET,HEAD,POST,PUT,PATCH,DELETE,PROPFIND,OPTIONS}] [\-l LOGIN] [config_uri] [path_info] [config_vars [config_vars ...]] .PP Submit a HTTP request to a web application. .PP This command makes an artifical request to a web application that uses a PasteDeploy (.ini) configuration file for the server and application. .PP Use "prequest config.ini /path" to request "/path". .PP Use "prequest \fB\-\-method\fR=\fI\,POST\/\fR config.ini \fI\,/path\/\fP < data" to do a POST with the given request body. .PP Use "prequest \fB\-\-method\fR=\fI\,PUT\/\fR config.ini \fI\,/path\/\fP < data" to do a PUT with the given request body. .PP Use "prequest \fB\-\-method\fR=\fI\,PATCH\/\fR config.ini \fI\,/path\/\fP < data" to do a PATCH with the given request body. .PP Use "prequest \fB\-\-method\fR=\fI\,OPTIONS\/\fR config.ini /path" to do an OPTIONS request. .PP Use "prequest \fB\-\-method\fR=\fI\,PROPFIND\/\fR config.ini /path" to do a PROPFIND request. .PP If the path is relative (doesn't begin with "/") it is interpreted as relative to "/". The path passed to this script should be URL\-quoted. The path can be succeeded with a query string (e.g. '/path?a=1&=b2'). .PP The variable "environ['paste.command_request']" will be set to "True" in the request's WSGI environment, so your application can distinguish these calls from normal requests. .SS "positional arguments:" .TP config_uri The URI to the configuration file. .TP path_info The path of the request. .TP config_vars Variables required by the config file. For example, `http_port=%(http_port)s` would expect `http_port=8080` to be passed here. .SS "optional arguments:" .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-n\fR NAME, \fB\-\-app\-name\fR NAME Load the named application from the config file (default 'main') .TP \fB\-\-header\fR NAME:VALUE Header to add to request (you can use this option multiple times) .TP \fB\-d\fR, \fB\-\-display\-headers\fR Display status and headers before the response body .TP \fB\-m\fR {GET,HEAD,POST,PUT,PATCH,DELETE,PROPFIND,OPTIONS}, \fB\-\-method\fR {GET,HEAD,POST,PUT,PATCH,DELETE,PROPFIND,OPTIONS} Request method type (GET, POST, PUT, PATCH, DELETE, PROPFIND, OPTIONS) .TP \fB\-l\fR LOGIN, \fB\-\-login\fR LOGIN HTTP basic auth username:password pair