CURL.GetAppConnectTime
----------------------

Queries connect time.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [2.5](newinversion25.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.GetAppConnectTime"; curl ) 

**MBS**( **"CURL.GetAppConnectTime";** /\* Queries connect time. \*/  
**$curl**) /\* The CURL session handle. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |

### Result

Returns the requested value or nothing on error.

### Description

Queries connect time.  
Get the time, in seconds, it took from the start until the SSL/SSH connect/handshake to the remote host was completed.   
This time is most often very near to the PRETRANSFER time, except for cases such as HTTP pippelining where the pretransfer time can be delayed due to waits in line for the pipeline and more.  
### Examples

Show time:

 Show Custom Dialog \[ "Connect App Time in seconds" ; MBS ( "CURL.GetAppConnectTime"; $curl ) \]  
### See also

- [CURL.GetConnectTime](CURLGetConnectTime.md)

### Example Databases

- [CURL/CURL Download Picture](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/CURL%20Download%20Picture.shtml#1ScriptAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 21st June 2021

  
[CURL.GetActiveSocket](CURLGetActiveSocket.md) - [CURL.GetBatchCurrentFileName](CURLGetBatchCurrentFileName.md)

[HTML Version](CURLGetAppConnectTime.shtml)