HTTP Task
This task will perform a HTTP request of the method specified against a web server. This is used when communicating with REST, SOAP and XML-RPC based web services. Please note that the task does not support redirects, so you must enter the actual URL in the task's settings.
Settings
Input
Optional
The input file or data to send to the web server in the body of the request.
Output Body File
Optional
Enter the name of a file to save the response body of the HTTP call to.
Output Header File
Optional
Enter the name of an XML file to save the response headers of the HTTP call to. An example of the XML format can be found below.
Contents Field
Optional
Raw data to be submitted via a POST request can be entered here.
Encoding Type
Required
The encoding to use for requests and the response. If a charset is specified in the response headers, it will override this setting. The available encodings are UTF8, UTF7, ASCII and Unicode.
Form Values
Optional
The collection of Key-Value pairs for submitting forms to websites or where data needs to be supplied in a 'Named Value Collection'.
Header Values
Optional
The collection of Key-Value pairs containing header information where it needs to be specified. This can be used to specify Content-type or other headers such as SOAP envelope properties.
Method
Required
The method of the request, in most cases GET is used to fetch a page and POST is used to send information to a web server. The methods available are GET, POST, PUT, PATCH, DELETE and HEAD which are used when making REST, SOAP or XML-RPC calls.
Password
Optional
The password to use for HTTP basic authentication. Only required when the web server requires basic authentication.
Retry Count
Required
The number of times to retry the underlying connection if an error occurs.
Timeout
Required
The amount of time in milliseconds to wait for the web server to respond to the HTTP request. Defaults to 120000 milliseconds (2 minutes).
URL
Required
The full URL to send the HTTP request to e.g. http://www.example.com
User Agent
Optional
The value to use for the User-Agent header in the HTTP request. Defaults to Zynk Software Ltd/Zynk.
Username
Optional
The username to use for HTTP basic authentication. Only required when the web server requires basic authentication.
Zynk Settings
Examples
Fetching a Web page or making a REST call
- Set the URL to http://www.google.com (or any address you want to grab)
- Set the Method to GET
- Set the Output File to
C:\google.html
Posting data to a Web page or making a REST POST method call
- Set the URL to http://www.example.com/ (or any address you want to post to)
- Set the Method to POST
- Set the Input File to
C:\data.xmlwhere the file contains the data to be posted
Sample Header File
<?xml version="1.0" encoding="utf-8"?>
<Headers>
<Transfer-Encoding>chunked</Transfer-Encoding>
<Connection>keep-alive</Connection>
<x-frame-options>DENY</x-frame-options>
<cross-origin-resource-policy>same-origin</cross-origin-resource-policy>
<x-xss-protection>1; mode=block</x-xss-protection>
<vary>origin</vary>
<strict-transport-security>max-age=15552000; includeSubDomains; preload</strict-transport-security>
<x-content-type-options>nosniff</x-content-type-options>
<referrer-policy>same-origin</referrer-policy>
<cross-origin-opener-policy>same-origin</cross-origin-opener-policy>
<cf-cache-status>DYNAMIC</cf-cache-status>
<Server-Timing>cfCacheStatus;desc="DYNAMIC"</Server-Timing>
<Server-Timing>cfEdge;dur=10,cfOrigin;dur=129</Server-Timing>
<Nel>{"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}</Nel>
<alt-svc>h3=":443"; ma=86400</alt-svc>
<Cache-Control>private</Cache-Control>
<Content-Type>text/html; charset=utf-8</Content-Type>
<Date>Fri, 22 May 2026 09:14:06 GMT</Date>
<Server>cloudflare</Server>
</Headers>