HTTPPOST Submit an HTTP/HTTPS POST transaction |
Top Previous Next |
This script command will perform a POST transaction on a HTTP/HTTPS site. Most common web forms use POST transactions.
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"
You may wish to build your HTTP POST Request programmatically in a script rather than using a static string or text file. To accomplish this task, build the Request body using the PREPAREPOST and POSTVALUE script commands and then submit it with HTTPPOST using the /intype=prepared option.
Wildcard characters are not permitted with the HTTPPOST command.
Use the RCVFILE script command to submit web forms that rely on the HTTP GET verb.
Related Command(s): PREPAREPOST, POSTVALUE |