HTTPPOST        Post to HTTP/HTTPS site

Top  Previous  Next

Syntax:

HTTPPOST

[ target resource ] [ input source ] [ output target ]

Arguments:

[ target resource ]

Variable or string defining the target resource name to post to.


[ input source ]

Variable or string providing request body source.


[ output target ]

Variable or string providing location for response body.

Options:

/intype=xx

Input source type, string or file, default is file.


/outtype=xx

Output source type, string or file, default is file.


/contenttype=xx

HTTP Content-Type header, default: "text/plain; charset=utf-8"

 

 

This script command will perform a post transaction on a HTTP/HTTPS site. This is an example of the HTTPPOST command:

 

HTTPPOST "example.php" "infile.txt" "outfile.txt"

 

Consider the following example where your input source is a string rather than a file name

 

HTTPPOST "example.php" "this is the request body" "outfile.txt" /intype=string

 

Consider the following example where you would like the response body to be stored in a variable rather than a file.

 

HTTPPOST "example.php" "infile.txt" outvar /outtype=string

 

Consider the following example where your request body’s content is iso8859-1 encoded xml

 

HTTPPOST "/rootdir/example.php" "infile.xml" "outfile.xml" /contenttype="text/xml; charset=iso8859-1"

 

Wildcard characters are not permitted with the HTTPPOST command.