---
name: "CURLOPT_EGDSOCKET"
section: "3"
platform: "linux"
package: "curl"
version: "8.23.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux", "macos"]
url: "https://new.carta.tech/CURLOPT_EGDSOCKET"
---

# CURLOPT\_EGDSOCKET(3)

EGD socket path

## NAME

CURLOPT\_EGDSOCKET - EGD socket path

## SYNOPSIS

```
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_EGDSOCKET, char *path);
```

## DESCRIPTION

Deprecated option. It serves no purpose anymore.

## DEFAULT

NULL

## DEPRECATED

This option was deprecated in 7.84.0.

## AVAILABILITY

Added in curl 7.7

## RETURN VALUE

*[curl\_easy\_setopt(3)](/curl_easy_setopt/3.md)* returns a CURLcode indicating success or error.

CURLE\_OK (0) means everything was OK, non-zero means an error occurred, see *[libcurl-errors(3)](/libcurl-errors/3.md)*.

## SEE ALSO

[**CURLOPT\_RANDOM\_FILE**(3)](/CURLOPT_RANDOM_FILE/3.md)
