Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CURL.SetUpdateProgressDialog
Sets whether progress dialog should be automatically updated.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes |
Parameters
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
Value | 0 to disable updates or 1 to enable updates | 1 |
Result
Returns "OK" on success.
Description
Sets whether progress dialog should be automatically updated.You can setup a progress dialog with our ProgressDialog functions. If you enable updates, the plugin will automatically update the progress bar with percentage of upload or download done.
Does not work with CURL.PerformInBackground.
Examples
Enable updates
MBS( "CURL.SetUpdateProgressDialog"; $curl; 1 )
Use progress dialog with upload or download:
# setup progress dialog
Set Variable [$result; Value:MBS("ProgressDialog.SetCancel"; 0)]
Set Variable [$result; Value:MBS("ProgressDialog.SetProgress"; 0)]
Set Variable [$result; Value:MBS("ProgressDialog.SetTopText"; "Sending email...")]
Set Variable [$result; Value:MBS("ProgressDialog.SetShowButton"; 0)]
Set Variable [$result; Value:MBS("ProgressDialog.Show")]
# Tell plugin to move bar for us automatically.
Set Variable [$result; Value:MBS("CURL.SetUpdateProgressDialog"; $curl; 1)]
# Run the transfer
Set Variable [$r; Value:MBS("CURL.Perform"; $curl)]
# hide progress dialog
Set Variable [$result; Value:MBS("ProgressDialog.Hide")]
See also
- CURL.Perform
- CURL.PerformAsync
- CURL.PerformInBackground
- Dialog.SetTop
- ProgressDialog.Hide
- ProgressDialog.SetCancel
- ProgressDialog.SetProgress
- ProgressDialog.SetShowButton
- ProgressDialog.SetTopText
- ProgressDialog.Show
Example Databases
- CURL/Amazon S3/Amazon S3 Upload File
- CURL/CURL Download in Background
- CURL/CURL Download with Progress
- CURL/FTP/CURL FTP Upload from file with Progress
- CURL/FTP/CURL FTP Upload
- CURL/SFTP/CURL sFTP Upload File
Blog Entries
This function checks for a license.
Created 18th August 2014, last changed 15th June 2021
