Artifactspublic-v0

curl

master
ply4 git calls31 ms288 KiB3 cachedprotocol v2
124 lines3.3 KiBRaw

NAME

curl-config - Get information about a libcurl installation

SYNOPSIS

curl-config [options]

DESCRIPTION

curl-config displays information about the curl and libcurl installation.

OPTIONS

--ca

Displays the built-in path to the CA cert bundle this libcurl uses.

--cc

Displays the compiler used to build libcurl.

--cflags

Set of compiler options (CFLAGS) to use when compiling files that use libcurl. Currently that is only the include path to the curl include files.

--checkfor [version]

Specify the oldest possible libcurl version string you want, and this script returns 0 if the current installation is new enough or it returns 1 and outputs a text saying that the current version is not new enough. (Added in 7.15.4)

--configure

Displays the arguments given to configure when building curl.

--feature

Lists what particular main features the installed libcurl was built with. At the time of writing, this list may include SSL, KRB4 or IPv6. Do not assume any particular order. The keywords are separated by newlines. There may be none, one, or several keywords in the list.

--help

Displays the available options.

--libs

Shows the complete set of libs and other linker options you need in order to link your application with libcurl.

--prefix

This is the prefix used when libcurl was installed. libcurl is then installed in $prefix/lib and its header files are installed in $prefix/include and so on. The prefix is set with configure --prefix.

--protocols

Lists what particular protocols the installed libcurl was built to support. At the time of writing, this list may include HTTP, HTTPS, FTP, FTPS, FILE, TELNET, LDAP, DICT and many more. Do not assume any particular order. The protocols are listed using uppercase and are separated by newlines. There may be none, one, or several protocols in the list. (Added in 7.13.0)

--ssl-backends

Lists the SSL backends that were enabled when libcurl was built. It might be no, one or several names. If more than one name, they appear comma-separated. (Added in 7.58.0)

--static-libs

Shows the complete set of libs and other linker options you need in order to link your application with libcurl statically. (Added in 7.17.1)

--version

Outputs version information about the installed libcurl.

--vernum

Outputs version information about the installed libcurl, in numerical mode. This shows the version number, in hexadecimal, using 8 bits for each part: major, minor, and patch numbers. This makes libcurl 7.7.4 appear as 070704 and libcurl 12.13.14 appear as 0c0d0e... Note that the initial zero might be omitted. (This option was broken in the 7.15.0 release.)

EXAMPLES

What linker options do I need when I link with libcurl?

$ curl-config --libs

What compiler options do I need when I compile using libcurl functions?

$ curl-config --cflags

How do I know if libcurl was built with SSL support?

$ curl-config --feature | grep SSL

What's the installed libcurl version?

$ curl-config --version

How do I build a single file with a one-line command?

$ `curl-config --cc --cflags` -o example source.c `curl-config --libs`
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Title: curl-config
5Section: 1
6Source: curl-config
7See-also:
8 - curl (1)
9Added-in: 7.7.2
10---
12# NAME
14curl-config - Get information about a libcurl installation
16# SYNOPSIS
18**curl-config [options]**
20# DESCRIPTION
22**curl-config**
23displays information about the curl and libcurl installation.
25# OPTIONS
27## `--ca`
29Displays the built-in path to the CA cert bundle this libcurl uses.
31## `--cc`
33Displays the compiler used to build libcurl.
35## `--cflags`
37Set of compiler options (CFLAGS) to use when compiling files that use
38libcurl. Currently that is only the include path to the curl include files.
40## `--checkfor [version]`
42Specify the oldest possible libcurl version string you want, and this script
43returns 0 if the current installation is new enough or it returns 1 and
44outputs a text saying that the current version is not new enough. (Added in
457.15.4)
47## `--configure`
49Displays the arguments given to configure when building curl.
51## `--feature`
53Lists what particular main features the installed libcurl was built with. At
54the time of writing, this list may include SSL, KRB4 or IPv6. Do not assume
55any particular order. The keywords are separated by newlines. There may be
56none, one, or several keywords in the list.
58## `--help`
60Displays the available options.
62## `--libs`
64Shows the complete set of libs and other linker options you need in order to
65link your application with libcurl.
67## `--prefix`
69This is the prefix used when libcurl was installed. libcurl is then installed
70in $prefix/lib and its header files are installed in $prefix/include and so
71on. The prefix is set with `configure --prefix`.
73## `--protocols`
75Lists what particular protocols the installed libcurl was built to support. At
76the time of writing, this list may include HTTP, HTTPS, FTP, FTPS, FILE,
77TELNET, LDAP, DICT and many more. Do not assume any particular order. The
78protocols are listed using uppercase and are separated by newlines. There may
79be none, one, or several protocols in the list. (Added in 7.13.0)
81## `--ssl-backends`
83Lists the SSL backends that were enabled when libcurl was built. It might be
84no, one or several names. If more than one name, they appear comma-separated.
85(Added in 7.58.0)
87## `--static-libs`
89Shows the complete set of libs and other linker options you need in order to
90link your application with libcurl statically. (Added in 7.17.1)
92## `--version`
94Outputs version information about the installed libcurl.
96## `--vernum`
98Outputs version information about the installed libcurl, in numerical mode.
99This shows the version number, in hexadecimal, using 8 bits for each part:
100major, minor, and patch numbers. This makes libcurl 7.7.4 appear as 070704 and
101libcurl 12.13.14 appear as 0c0d0e... Note that the initial zero might be
102omitted. (This option was broken in the 7.15.0 release.)
104# EXAMPLES
106What linker options do I need when I link with libcurl?
108 $ curl-config --libs
110What compiler options do I need when I compile using libcurl functions?
112 $ curl-config --cflags
114How do I know if libcurl was built with SSL support?
116 $ curl-config --feature | grep SSL
118What's the installed libcurl version?
120 $ curl-config --version
122How do I build a single file with a one-line command?
124 $ `curl-config --cc --cflags` -o example source.c `curl-config --libs`
Diagnostics4 git calls · 31 ms
CallStatusSizeTime031 ms
discover200152 B3 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=2
git.response.bytes=152
git.server.agent=gitty/1.0
git.server.object_format=sha1
git.server.caps=agent ls-refs fetch object-format
git.server.fetch=shallow filter sideband-all
git.protocol.version=2
git.pkt.frames=8
git.pkt.data=6
git.pkt.flush=2
git.pkt.delim=0
git.pkt.bytes=152
git.pkt.payload.max=34
ls-refs200149 B · hit3 ms
git.upload-pack ls-refs
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=3
git.response.bytes=149
git.response.cache=HIT
git.response.duration_ms=3
git.protocol.version=2
git.pkt.frames=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=149
git.pkt.payload.max=78
git.ls_refs.count=2
git.ls_refs.head=refs/heads/master
fetchblob:none · deepen 10200287 KiB · hit2 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=26
git.response.bytes=293470
git.response.cache=HIT
git.response.duration_ms=2
git.fetch.filter=blob:none
git.fetch.filter.requested=tree:0
git.fetch.filter.fallback=blob:none
git.fetch.filter.learned=false
git.fetch.wants=31c911efe5652725e930f4d2e60c9060e5f6646d
git.fetch.haves.count=0
git.fetch.deepen=10
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=10
git.pkt.data=8
git.pkt.flush=1
git.pkt.delim=1
git.pkt.bytes=293470
git.pkt.payload.max=65516
git.sideband.band1.bytes=293354
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=87
git.pack.bytes=293354
git.pack.ofs_delta=0
git.pack.ref_delta=1
git.pack.chain.max=1
git.pack.trailer=6a646bcda6740bab42e321b51998b52ea15146c0
git.pack.full=86
Open pack map
fetch2001.5 KiB · hit26 ms
git.upload-pack fetch
http.response.status_code=200
git.response.bytes=1487
git.response.cache=HIT
git.response.duration_ms=26
git.fetch.wants=12ad245b79beeb317fc233d46a0a69dbbd35c190
git.fetch.haves.count=0
git.fetch.deepen=0
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=1487
git.pkt.payload.max=1466
git.sideband.band1.bytes=1465
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0

Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.

Remote
https://5ad2236b39de4c8bd8f6270ea63f3ea9.artifacts.cloudflare.net/git/public-v0/curl.git
Ref
refs/heads/master
Commit
31c911efe5652725e930f4d2e60c9060e5f6646d
cf-ray
a5e1b989ad025b65
Request
98157c11…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format