Net - HTTP

Top  Previous  Next

The task type HTTP enables execution a remote script/load webpage with standard HTTP POST or HTTP GET. You can combine this function with logging the output of the script/page on a file or send the output by mail.

 

clip0117

 

Method

There are two kinds of methods which are most common when calling a remote script or page. Some web frameworks (such as PHP) provide separate mechanisms for accessing POST and GET data. POST is generally recommended because URL:s don't appear in web logs.

 

URL

This is the remote script or page to be called. Use the following format: http://www.yourwebpage.com/yourscript.php. Do not enter any parameters here like ?myname=John. Enter all parameters in the parameter field.

 

Parameters

Optional. Enter all your parameters here. Leave out all "?". Just type myname=John and if you have more than one variable, separate them by "&" like this: firstname=John&lastname=Doe.

 

Credentials

Optional. If your script requires authentication you can select a credential from the combo box. By clicking on Manage credentials you can add or edit current credentials.

 

UserAgent

Optional. If your script requires a certain UserAgent you can use this field to let VisualCron pretend to be a certain UserAgent.

 

Timeout in seconds

This is the timeout of the web request. Default is 100 seconds.

 

Save content to file

Normally, the content from the request is stored in the HTTP output. For example, if you script returns a text it can be found the Result of the HTTP task. It is stored in text mode. If you want to use the binary output, for example if you want to download a file, you should check Save content.

 

Credentials

Optional. If you want to save the content in a folder which requires network credentials then select a valid credential for that folder. By clicking on Manage credentials you can add or edit current credentials.

 

Folder path

Specify a path where you want to save the content/file.

 

Auto name file

Optional. If this box is checked your file will be named after the the last part of the url.

 

File name

The name of the file to be saved.

 

Exist options

Select how VisualCron should handle existing files. Append, overwrite, overwrite if newer or skip the saving.