Request Item Data

After you have successfully specified URL for the request item, you also have to specify the request data.

Method

To specify http method, select one of the methods available in the drop down or type the desired method name.

Content type

Select appropriate content type for your request data from the drop down list or enter your own. The value specified here will be set as the value of 'Content-type' header when request will be executed.
If you are going to include charset information in content type value, make sure that the charset value specified matches 'Request encoding' specified in project properties. When executing requests, request body data will be encoded with the 'Request encoding' specified in project properties.

Viewer

Select pretty viewer for request body. This setting is only for more user-friendly display, you can safely leave this at default value (Text).

Request data

The following upload types of request data are possible:

String data type

To specify string request data, enter it in the request data field. The most common content types include application/xml, application/json, text/plain, or application/x-www-form-urlencoded. It is possible to include parameters or chaining items in this field; use corresponding menus available in the 'Field actions' button located next to the request body field.

How to specify 'application/x-www-form-urlencoded' data

When specifying 'application/x-www-form-urlencoded' data enter each element on a separate line or combine them with '&' character. You can click 'Build Request Body' button to build body from an existing HTML content.

Single file contents type

If you want to upload file from disk, select corresponding option and enter disk location of the file (path relative to the opened project file can be used). You can also click 'Browse Files' button and browse for the file on the disk. It is possible to use parameters to upload multiple files at once; you can press 'Ctrl+Space' to see the list of available parameters.

Multipart form data type

If you want to upload multipart form data, select corresponding option and enter each data element on a separate line, you can also include files from your computer. When specifying disk location of the file, path relative to the opened project file can be used. Content type should be set to 'multipart/form-data' (set automatically when this upload type is selected). During upload process, HttpMaster will include all data elements with valid file path as files; others will be included as plain text data. If you would like to include content type with particular element, specify content type value after the element value and separate them with vertical bar (see example below).
To automatically build data elements from an existing HTML content, you can click button 'Build Request Body' and obtain data from an existing HTML content.
It is possible to include parameters or chaining items in this field; use corresponding menus available in the 'Field actions' button located next to the request body field.