Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

CURL.SetDebugWithProgress

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

Parameters

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

Result

Returns OK or error.

Description

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.

Examples

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; "http://www.monkeybreadsoftware.com/images/mbs.jpg")]
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 is free to use.

Created 15th June 2016, last changed 27th December 2023


CURL.SetDebugWithData - CURL.SetDebugWithTime