PREPAREPOST Builds an HTTP/HTTPS POST Request |
Top Previous Next |
This script command helps you programmatically build an HTTP/HTTPS POST Request body for automating the submission of the most common type of web forms. Requests prepared with this command are typically submitted via the HTTPPOST command.
The default value of [ content-type ] is "multipart/form-data" which is the more complex but more capable of the available options. This is the only content type able to POST to web forms that upload files. The value specified in the [ content-type ] argument replaces the value of the /contenttype option on the HTTPPOST command.
After using this command to create the Request, use the POSTVALUE script command to add name/value pairs to the prepared POST data. Finally you submit the Request using the HTTPPOST command with the /intype=prepared option. The Robo-FTP.com online Knowledge Base contains an example script that illustrates this process.
Related command(s): POSTVALUE, HTTPPOST See also: HTTP Considerations |