Posting from data
Some endpoint URL’s, such as the targets for forms on webpages, expect the request body to contain url-encoded request parameters
as the message body.
Prerequisites: You are connected to the station.
- Expand .
- For
Source Type
, select ParameterStringSource
from the drip-down list.
- Define your http request parameters, in the Parameters folder as usual:
- Ensure that your client’s
Method
is POST.
- Right-click HttpClient and click .
The Data slot of the request body source is now read-only, and populated with the encoded parameter string:
The driver automatically sets the Content-Type
header to application/x-www-form-urlencoded.