CURL.SetOptionAbstractUnixSocket
--------------------------------

Sets path to an abstract Unix domain socket.

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

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

**MBS**( **"CURL.SetOptionAbstractUnixSocket";** /\* Sets path to an abstract Unix domain socket. \*/  
**$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

Sets path to an abstract Unix domain socket.  
See also [ABSTRACT\_UNIX\_SOCKET](https://curl.haxx.se/libcurl/c/CURLOPT_ABSTRACT_UNIX_SOCKET.html) option in CURL manual.

### Examples

Try the function:

 Set Variable \[$curl ; Value: MBS ("[CURL.New](CURLNew.md)")\]  
  
\# Connect to local Docker API via abstract socket   
Set Variable \[$r ; Value: MBS ("[CURL.SetOptionURL](CURLSetOptionURL.md)"; $curl ; "http://localhost/")\]  
Set Variable \[$r ; Value: MBS ("CURL.SetOptionAbstractUnixSocket"; $curl ; "/tmp/foo.sock")\]  
  
\# Perform request   
Set Variable \[$result ; Value: MBS ("[CURL.Perform](CURLPerform.md)"; $curl )\]  
Show Custom Dialog \[ $result \]  
  
Set Variable \[$r ; Value: MBS ("[CURL.Release](CURLRelease.md)"; $curl )\]  
### See also

- [CURL.New](CURLNew.md)
- [CURL.Perform](CURLPerform.md)
- [CURL.Release](CURLRelease.md)
- [CURL.SetOptionURL](CURLSetOptionURL.md)

Created 15th April 2018 , last changed 22nd February 2026

  
[CURL.SetOptionAWSSigV4](CURLSetOptionAWSSigV4.md) - [CURL.SetOptionAcceptEncoding](CURLSetOptionAcceptEncoding.md)

[HTML Version](CURLSetOptionAbstractUnixSocket.shtml)