| Category: HTTP and network
Download file | |
Download a URL and save it to a file | Applies to: Installation, Uninstallation | Properties: | - URL
The URL from which the file should be downloaded. The URL must start with http:// or https://. If you add a query string, it must already be URL encoded. - Target file
The file to which the downloaded URL will be saved. - Request headers
A list of name-value pairs that should be set as additional headers for the request. Request headers that are installer variables with array values (e.g. String[], Object[] or File[]) are expanded as separate request headers, this allows you to build a variable length list of request headers at runtime. - Retry if interrupted
If selected, ask the user to retry if a successfully started download is interrupted. - Check for md5sums
If selected, the action will try to download a file named md5sums from either the directory of the above URL or from the optional URL given below. If the download is successful and the file contains an entry for the target file name, it will be checked. If the MD5 checksums do not match and the "Silent failure" option is not selected, a dialog will be shown that offers the possibility to retry the download. - Optional md5sums URL
An optional URL for the md5ums file. If specified, only this URL will be used.Note: This property is only visible if "Check for md5sums" is selected. - Silent failure
If selected, the action will fail immediately if a mismatch in the MD5 checksums occurs. Otherwise the user will be presented with a dialog box that explains the failure and offers the possibility to retry the download.Note: This property is only visible if "Check for md5sums" is selected. - Show progress
If selected, and a progress bar is available on the current screen, the action will show its progress in the progress bar. - Show file name
If selected, the name of the downloaded file and the target directory will be displayed. This setting has no effect if "Show progress" is not selected.Note: This property is only visible if "Show progress" is selected. - Delete downloaded file on exit
If selected, the downloaded file will be deleted when the installer application terminates. - Ask for proxy if necessary [Error Handling]
At first, the connection is attempted with the proxy information that is set for the default browser. If that fails, and this property is selected, a proxy dialog will be shown where the user can configure the proxy that should be used to connect to the web server. - Network failure script [Error Handling]
A script that is executed if the HTTP connection fails in such a way, that the proxy dialog would have to be shown. If you return ErrorHandlingMode.IGNORE, the regular proxy or failure handling will proceed, if you return ErrorHandlingMode.CANCEL, the action will fail immediately. If you can take corrective action in the script, you can return ErrorHandlingMode.RETRY to make the same HTTP request again. However, you have to take special care not to enter an infinite loop. Typically, there should be user input before you retry and the user should be given the option to cancel.The script is only executed for actual network failures, and not if the server or the proxy connection require authentication. - Accept all SSL certificates [Error Handling]
If the protocol of the URL starts with "https" and this property is selected, the SSL certificate will not be checked for validity. This is only recommended for testing purposes when working with self-signed certificates. - Connect timeout [Error Handling]
The timeout for establishing the socket connection in milliseconds. A timeout of zero is interpreted as an infinite timeout. - Read timeout [Error Handling]
The timeout for reading data from the socket connection in milliseconds. A timeout of zero is interpreted as an infinite timeout. - Show error message [Error Handling]
Show a default error message if the download fails.
|
|
HTTP request | |
Make an HTTP request to a specified URL. All common HTTP request methods are supported for REST calls. For mime types starting with text or containing "charset" information, the response body can be saved to an installer variable. To download large files, use the "Download file" action instead. The action will succeed if a HTTP response code in the 2xx range is received, otherwise it will fail. You can save the response code to a variable to inspect it in a later action. | Applies to: Installation, Uninstallation | Properties: | - Ask for proxy if necessary [Error Handling]
At first, the connection is attempted with the proxy information that is set for the default browser. If that fails, and this property is selected, a proxy dialog will be shown where the user can configure the proxy that should be used to connect to the web server. - Network failure script [Error Handling]
A script that is executed if the HTTP connection fails in such a way, that the proxy dialog would have to be shown. If you return ErrorHandlingMode.IGNORE, the regular proxy or failure handling will proceed, if you return ErrorHandlingMode.CANCEL, the action will fail immediately. If you can take corrective action in the script, you can return ErrorHandlingMode.RETRY to make the same HTTP request again. However, you have to take special care not to enter an infinite loop. Typically, there should be user input before you retry and the user should be given the option to cancel.The script is only executed for actual network failures, and not if the server or the proxy connection require authentication. - Accept all SSL certificates [Error Handling]
If the protocol of the URL starts with "https" and this property is selected, the SSL certificate will not be checked for validity. This is only recommended for testing purposes when working with self-signed certificates. - Connect timeout [Error Handling]
The timeout for establishing the socket connection in milliseconds. A timeout of zero is interpreted as an infinite timeout. - Read timeout [Error Handling]
The timeout for reading data from the socket connection in milliseconds. A timeout of zero is interpreted as an infinite timeout. - URL [Request]
The URL for the HTTP request. The URL must start with http:// or https://. If you add a query string, it must already be URL encoded.To post a query string with URL-encoded key-value pairs, use the "Form data" property instead of adding the query string here. - HTTP request method [Request]
The request method for the HTTP protocol can be one of GET, POST, HEAD, OPTIONS, PUT, DELETE, TRACE. For POST and PUT, the values entered in the "Form data" property are transmitted in the HTTP message body with the mime type "application/x-www-form-urlencoded". For other request methods, the data is appended as a query string to the URL. - Custom request body
If selected, a custom request body is sent. For form data, use the "Form data" property instead. If both form data and a custom request body are present, the form data is appended to the URL.Note: This property is only visible if "HTTP request method" is set to one of [POST, PUT]. - Content type
The content type of the request body. For JSON, use application/json.Note: This property is only visible if "Custom request body" is selected. - Request body
The request body as a string.Note: This property is only visible if "Custom request body" is selected. - Form data [Request]
A list of key-value pairs that should be transmitted with this request. Depending on the request method, they are either appended as a query string to the URL or transmitted in the HTTP message body. Key-value pairs that are installer variables with array values (e.g. String[], Object[] or File[]) are expanded as separate key-value pairs, this allows you to build a variable length list of key-value pairs at runtime. - Request headers [Request]
A list of name-value pairs that should be set as additional headers for the request. Request headers that are installer variables with array values (e.g. String[], Object[] or File[]) are expanded as separate request headers, this allows you to build a variable length list of request headers at runtime. - Perform rollback request [Request]
If selected, a request is performed in case of a rollback. You can configure the rollback request with the child properties. All other properties, such as error handling are shared with the regular request. - Rollback URL
The URL for the rollback request. The URL must start with http:// or https://. If you add a query string, it must already be URL encoded.Note: This property is only visible if "Perform rollback request" is selected. - Rollback HTTP request method
The request method for the HTTP protocol can be one of GET, POST, HEAD, OPTIONS, PUT, DELETE, TRACE. For POST and PUT, the values entered in the "Form data" property are transmitted in the HTTP message body with the mime type "application/x-www-form-urlencoded". For other request methods, the data is appended as a query string to the URL.Note: This property is only visible if "Perform rollback request" is selected. - Custom request body
If selected, a custom request body is sent. For form data, use the "Form data" property instead. If both form data and a custom request body are present, the form data is appended to the URL.Note: This property is only visible if "Rollback HTTP request method" is set to one of [POST, PUT]. - Content type
The content type of the request body. For JSON, use application/json.Note: This property is only visible if "Custom request body" is selected. - Request body
The request body as a string.Note: This property is only visible if "Custom request body" is selected. - Rollback form data
A list of key-value pairs that should be transmitted with this request. Depending on the request method, they are either appended as a query string to the URL or transmitted in the HTTP message body. Key-value pairs that are installer variables with array values (e.g. String[], Object[] or File[]) are expanded as separate key-value pairs, this allows you to build a variable length list of key-value pairs at runtime. Note: This property is only visible if "Perform rollback request" is selected. - Variable name for response body [Response]
Optionally, you can enter a variable name that will be set with the text of the response body as an instance of java.lang.String. The variable value will not be written to the log file.Enter the variable without the installer prefix and the dollar sign.The variable will not be set if the mime type does not start with text/ or contain "charset" information. - Variable name for response code [Response]
Optionally, you can enter a variable name that will be set with the response code as an instance of java.lang.Integer. Enter the variable without the installer prefix and the dollar sign. - Variable name for response headers [Response]
Optionally, you can enter a variable name that will be set with the response headers as an instance of java.util.Map. The keys in the map are the header names, and the values are instances of java.util.List<String> with the header values. The variable value will not be written to the log file.Enter the variable without the installer prefix and the dollar sign.
|
|
Upload file | |
Upload a file to an HTTP server with a POST request. | Applies to: Installation, Uninstallation | Properties: | - File
The file that will be uploaded. - URL
The URL to which the file should be uploaded. The URL must start with http:// or https://. If you add a query string, it must already be URL encoded. - Request headers
A list of name-value pairs that should be set as additional headers for the request. Request headers that are installer variables with array values (e.g. String[], Object[] or File[]) are expanded as separate request headers, this allows you to build a variable length list of request headers at runtime. - Retry if interrupted
If selected, ask the user to retry if a successfully started upload is interrupted. - Show progress
If selected, and a progress bar is available on the current screen, the action will show its progress in the progress bar. - Show file name
If selected, the name of the uploaded file and the target directory will be displayed. This setting has no effect if "Show progress" is not selected.Note: This property is only visible if "Show progress" is selected. - Ask for proxy if necessary [Error Handling]
At first, the connection is attempted with the proxy information that is set for the default browser. If that fails, and this property is selected, a proxy dialog will be shown where the user can configure the proxy that should be used to connect to the web server. - Network failure script [Error Handling]
A script that is executed if the HTTP connection fails in such a way, that the proxy dialog would have to be shown. If you return ErrorHandlingMode.IGNORE, the regular proxy or failure handling will proceed, if you return ErrorHandlingMode.CANCEL, the action will fail immediately. If you can take corrective action in the script, you can return ErrorHandlingMode.RETRY to make the same HTTP request again. However, you have to take special care not to enter an infinite loop. Typically, there should be user input before you retry and the user should be given the option to cancel.The script is only executed for actual network failures, and not if the server or the proxy connection require authentication. - Accept all SSL certificates [Error Handling]
If the protocol of the URL starts with "https" and this property is selected, the SSL certificate will not be checked for validity. This is only recommended for testing purposes when working with self-signed certificates. - Connect timeout [Error Handling]
The timeout for establishing the socket connection in milliseconds. A timeout of zero is interpreted as an infinite timeout. - Read timeout [Error Handling]
The timeout for reading data from the socket connection in milliseconds. A timeout of zero is interpreted as an infinite timeout.
|
|
Wait for HTTP server | |
Wait until an HTTP or HTTPS port becomes available. This is useful if you start a server, for example with a "Start a service" action, and need to wait until the server is operational before proceeding with the installation. | Applies to: Installation, Uninstallation | Properties: | - URL
The URL that should be checked. The URL must start with http:// or https://. If you add a query string, it must already be URL encoded. - Timeout
The timeout in seconds. After this timeout, the action will give up waiting for the HTTP port and fail. A timeout of 0 or a negative value means that the action will wait indefinitely for the HTTP port. - Set indeterminate progress
If selected, the progress bar will be set to indeterminate mode while the action is running. Note that this only has an effect if a progress bar is available on the current screen. - Accept all response codes
If selected, all response codes returned by the HTTP server will by accepted for the action to succeed. Otherwise, the action will continue to wait for a 2xx response code. - Variable name for response code
If set, the response code will be saved to this installer variable. The variable will only be set in case of success. If the action fails, it always fails due to the timeout and there is no associated response code.
|
|
Wait for Socket | |
Wait until a socket can be connected to. This is useful if you start a non-HTTP server. For HTTP and HTTPS, use the "Wait for HTTP server" action instead. | Applies to: Installation, Uninstallation | Properties: | - URL
The host on which the server socket should be checked. Can be a host name or an IP address. - Port
The port on which the server socket should be checked. - Timeout
The timeout in seconds. After this timeout, the action will give up waiting for the HTTP port and fail. A timeout of 0 or a negative value means that the action will wait indefinitely for the HTTP port. - Set indeterminate progress
If selected, the progress bar will be set to indeterminate mode while the action is running. Note that this only has an effect if a progress bar is available on the current screen.
|
|
|