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 |
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
- CURL.CreateDebugOutputFile
- CURL.GetDebugWithProgress
- CURL.GetResultAsJPEG
- CURL.New
- CURL.SetDebugWithTime
- CURL.SetOptionConnectTimeoutMS
- CURL.SetOptionQuote
- CURL.SetOptionURL
- Trace
- Trace.SetWithTimes
Release notes
- Version 10.3
- Changed CURL debug output with progress using CURL.SetDebugWithProgress to not show upload and download progress if you are only downloading or uploading.
- Version 8.3
- Fixed crash with CURL.SetDebugWithProgress if not logging to file.
Example Databases
Blog Entries
- SFTP Upload with temporary file
- MBS FileMaker Plugin, version 10.3pr8
- Debugging problems on FileMaker Cloud for AWS
- MBS FileMaker Plugin, version 8.3pr6
- MBS FileMaker Plugin, version 6.3pr3
This function is free to use.
Created 15th June 2016, last changed 27th December 2023