Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


Sets wether times are included in debug log.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 6.2 Yes Yes Yes Yes Yes

MBS( "CURL.SetDebugWithTime"; Handle; Value )


Parameter Description Example value
Handle The CURL session handle. $curl
Value Pass 1 to include times or 0 to not include them. 1


Returns OK or error.


Sets wether times are included in debug log.
This allows you to monitor what happens when.
e.g. see if login takes 10 seconds instead of 0.1.
Default is off.

This must be set before you call CURL.Perform function.


Load text and log with times:

#Start new session
Set Variable [$curl; Value:MBS("CURL.New")]
#Set URL to load (HTTP, HTTPS, FTP, FTPS, SFTP, etc.)
Set Variable [$result; Value:MBS("CURL.SetOptionURL"; $curl; CURL Test::URL)]
#RUN now
Set Field [CURL Test::Result; MBS("CURL.SetDebugWithTime"; $curl; 1)]
Set Field [CURL Test::Result; MBS("CURL.Perform"; $curl)]
#Check result
Set Field [CURL Test::Text; MBS("CURL.GetResultAsText"; $curl; "UTF8")]
Set Field [CURL Test::header; MBS("CURL.GetHeaderAsText"; $curl)]
Set Field [CURL Test::debug; MBS("CURL.GetDebugAsText"; $curl)]
Set Variable [$result; Value:MBS("CURL.Cleanup"; $curl)]

See also

CURL.SetDebugWithProgress   -   CURL.SetFinishedEvaluate

Feedback: Report problem or ask question.

MBS Xojo blog