Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1    Statistic    FMM    Blog  


Sets whether to include progress in debug messages.

Component Version macOS Windows Linux Server iOS SDK
CURL 6.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.SetDebugWithProgress"; curl; Value )   More


Parameter Description Example
curl The CURL session handle. $curl
Value The new setting.
Pass 1 to enable or 0 to disable.


Returns OK or error.


Sets whether to include progress in debug messages.
By default we don't include progress messages in log.

This must be set before you call CURL.Perform function, so CURL.GetDebugMessages will include progress entries in the log.


Download with debug log with full details:

Set Variable [$curl; Value:MBS("CURL.New")]
Set Variable [$result; Value:MBS("CURL.CreateDebugOutputFile"; $curl; "/tmp/curl.log")]
Set Variable [$result; Value:MBS("CURL.SetOptionURL"; $curl; "")]
Set Variable [$result; Value:MBS("CURL.SetDebugWithTime"; $curl; 1)]
Set Variable [$result; Value:MBS("CURL.SetDebugWithProgress"; $curl; 1)]
Set Field [CURL Test::Result; MBS("CURL.Perform"; $curl)]
Set Field [CURL Test::Image; MBS("CURL.GetResultAsJPEG"; $curl)]
Set Field [CURL Test::debug; MBS("CURL.GetDebugMessages"; $curl)]
Set Variable [$result; Value:MBS("CURL.Release"; $curl)]

Enable advanced logging to debug a problem:

# Trace to file with times
Set Variable [ $r; Value: MBS( "Trace"; "/tmp/mbs.log" )
Set Variable [ $r; Value: MBS( "Trace.SetWithTimes"; 1 )
# Debug log for CURL with additional data:
Set Variable [ $r; Value: MBS( "CURL.SetDebugWithTime"; $curl; 1 )
Set Variable [ $r; Value: MBS( "CURL.SetDebugWithProgress"; $curl; 1 )
# and define some timeouts
Set Variable [ $r; Value: MBS( "CURL.SetOptionConnectTimeoutMS"; $curl; 10000 )

See also

Release notes

Example Databases

Blog Entries

This function checks for a paid license.

Created 15th June 2016, last changed 4th March 2023

CURL.SetDebugWithData - CURL.SetDebugWithTime

💬 Ask a question or report a problem

Start Chat