Check Compiled Features in Curl on Linux

Check Compiled Features in Curl on Linux

Curl is a versatile command line tool that supports a wide range of protocols and features, making it a useful tool for many developers and system administrators. However, depending on how Curl was compiled, it may include different features. This tutorial explains how to check compiled features in Curl on Linux.

Execute the command below to identify the features that were enabled during the compilation of Curl:

curl --version | grep Features | tr ' ' '\n'

This command retrieves the version information of Curl installed on the system, filters out the line containing Features, and then transforms the output into a list with each feature on a separate line. Output example:

Features:
alt-svc
AsynchDNS
brotli
GSS-API
HSTS
HTTP2
HTTPS-proxy
IDN
IPv6
Kerberos
Largefile
libz
NTLM
PSL
SPNEGO
SSL
threadsafe
TLS-SRP
UnixSockets
zstd

Leave a Comment

Cancel reply

Your email address will not be published.