...
Select an HTTP request method from the following options:
HTTP Method Description GET Requests data from the target server POST Sends data to the target server. Select either Body or Form under Content* PUT Replaces current resources of the target URL with the uploaded content. Select either Body or Form under Content* PATCH Updates partial resources of the target URL. Select either Body or Form under Content* DELETE Removes all current representation of the target resource Note title Note! *The Body and Form fields fields are visible only for request methods POST, PUT and PATCH.
- Select Body or Form and add the corresponding details in the content of the request message. You can use Variable Insertion.
Click on the following samples to see the details.
Note title Note! The form input needs to be URL encoded, otherwise, it fails.
HTTP form data use a hardcoded content-type value of ‘application/x-www-form-urlencoded’.
Expand title Sample of an HTTP body content message No Format { "name" : "my_username", "first-name" : "My", "last-name" : "Username", "display-name" : "My Username", "email" : "user@example.test", "active" : true }
Expand title Sample of an HTTP form content message No Format name=my_username&first-name=My&last-name=Username&display-name=My%20Username&email=user@example.test&active=true
- Select Body or Form and add the corresponding details in the content of the request message. You can use Variable Insertion.
- In Target URL, enter URL of the target HTTP server. You can use Variable Insertion.
You can select a combination of the following options to be included in the URL:
Option Description Include basic access authentication credentials Select to add the specified username and password Include query string in URL Select to include a query string in the URL. Add a key and its corresponding value. You can include multiple query strings. Customize header Select to customize the headers of the URL and specify multiple keys and their respective values.
The default value for the HTTP headers “content-type” and “accept” is application/json.
You can override the default value for HTTP header “content-type”.
It is recommended that the default value for HTTP header "accept" is left unchanged. The HTTP functions only support application/json.
...