CURL.GetNumConnects
-------------------

Queries new connections count for transfer.

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

MBS( "CURL.GetNumConnects"; curl ) 

**MBS**( **"CURL.GetNumConnects";** /\* Queries new connections count for transfer. \*/  
**$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 new connections count for transfer.  
Query how many new connections libcurl had to create to achieve the previous transfer (only the successful connects are counted).   
Combined with CURL.SetOptionRedirectCount you are able to know how many times libcurl successfully reused existing connection(s) or not.   
### 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.GetNameLookupTime](CURLGetNameLookupTime.md) - [CURL.GetOSErrNo](CURLGetOSErrNo.md)

[HTML Version](CURLGetNumConnects.shtml)