CURL.SetOptionSSLEnableNPN
--------------------------

Enable/disable TLS NPN extension (http2 over ssl might fail without)

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

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "CURL.SetOptionSSLEnableNPN"; curl; Value ) 

**MBS**( **"CURL.SetOptionSSLEnableNPN";** /\* Enable/disable TLS NPN extension (http2 over ssl might fail without) \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* The option value. \*/ 

### Parameters

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

### Result

Returns OK or error.

### Description

Enable/disable TLS NPN extension (http2 over ssl might fail without)  
### See also

- [CURL.SetOptionSSLEnableALPN](CURLSetOptionSSLEnableALPN.md)
- [CURL.SetOptionSSLEngine](CURLSetOptionSSLEngine.md)

### Release notes

- **Version 13.0**
    - Deprecated [CURL.SetOptionEGDSocket](https://www.mbsplugins.eu/CURLSetOptionEGDSocket.shtml), [CURL.SetOptionSSLEnableNPN](https://www.mbsplugins.eu/CURLSetOptionSSLEnableNPN.shtml), [CURL.SetOptionSocks5GSSAPIService](https://www.mbsplugins.eu/CURLSetOptionSocks5GSSAPIService.shtml) and [CURL.SetOptionRandomFile](https://www.mbsplugins.eu/CURLSetOptionRandomFile.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin, version 13.0pr5](https://www.mbsplugins.de/archive/2023-01-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

Created 15th April 2018 , last changed 21st December 2022

  
[CURL.SetOptionSSLEnableALPN](CURLSetOptionSSLEnableALPN.md) - [CURL.SetOptionSSLEngine](CURLSetOptionSSLEngine.md)

[HTML Version](CURLSetOptionSSLEnableNPN.shtml)