CURL.SetOptionAddressScope
--------------------------

Sets the IPv6 scope\_id.

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

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

**MBS**( **"CURL.SetOptionAddressScope";** /\* Sets the IPv6 scope\_id. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* New scope ID.e.g. 1234 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | New scope ID. | 1234 |

### Result

Returns "OK" on success.

### Description

Sets the IPv6 scope\_id.  
Pass a number specifying the scope\_id value to use when connecting to IPv6 link-local or site-local addresses.   
See also [ADDRESS\_SCOPE](https://curl.haxx.se/libcurl/c/CURLOPT_ADDRESS_SCOPE.html) option in CURL manual.

Created 18th August 2014 , last changed 12nd July 2015

  
[CURL.SetOptionAcceptTimeoutMS](CURLSetOptionAcceptTimeoutMS.md) - [CURL.SetOptionAppend](CURLSetOptionAppend.md)

[HTML Version](CURLSetOptionAddressScope.shtml)