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: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

CURL.SetDebugWithTime

Sets whether times are included in debug log.

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

Parameters

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

Result

Returns OK or error.

Description

Sets whether 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, so CURL.GetDebugAsText will include timestamps in the log.

Examples

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)]
#Cleanup
Set Variable [$result; Value:MBS("CURL.Release"; $curl)]

See also

Example Databases

Blog Entries

Created 14th May 2016, last changed 30th October 2020


CURL.SetDebugWithProgress - CURL.SetFinishedEvaluate

Feedback: Report problem or ask question.