.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3. .TH PREQUEST "1" "January 2016" "prequest 1.6+dfsg-1" "User Commands" .SH NAME prequest \- Python 2 Pyramid command .SH SYNOPSIS .B prequest \fI\,config_uri path_info \/\fR[\fI\,args/options\/\fR] .SH DESCRIPTION Submit a HTTP request to a web application. This command makes an artifical request to a web application that uses a PasteDeploy (.ini) configuration file for the server and application. Use "prequest config.ini /path" to request "/path". Use "prequest \fB\-\-method\fR=\fI\,POST\/\fR config.ini \fI\,/path\/\fP < data" to do a POST with the given request body. Use "prequest \fB\-\-method\fR=\fI\,PUT\/\fR config.ini \fI\,/path\/\fP < data" to do a PUT with the given request body. Use "prequest \fB\-\-method\fR=\fI\,PATCH\/\fR config.ini \fI\,/path\/\fP < data" to do a PATCH with the given request body. Use "prequest \fB\-\-method\fR=\fI\,OPTIONS\/\fR config.ini /path" to do an OPTIONS request. Use "prequest \fB\-\-method\fR=\fI\,PROPFIND\/\fR config.ini /path" to do a PROPFIND request. 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'). 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. .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-n\fR NAME, \fB\-\-app\-name\fR=\fI\,NAME\/\fR Load the named application from the config file (default 'main') .TP \fB\-\-header\fR=\fI\,NAME\/\fR: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 METHOD, \fB\-\-method\fR=\fI\,METHOD\/\fR Request method type (GET, POST, PUT, PATCH, DELETE, PROPFIND, OPTIONS) .TP \fB\-l\fR LOGIN, \fB\-\-login\fR=\fI\,LOGIN\/\fR HTTP basic auth username:password pair