curl / libcurl / Using libcurl

using libcurl

General hints and suggestions to consider when using libcurl in your applications are gathered here.

Our suggested way on how to write autoconf to find libcurl.

curl-config is our friend

Applications (or actually whoever) that want to find out about the libcurl installation on a particular host, will find a friend in the curl-config tool. (Added in the curl 7.7.2 release.)

What compiler flags do I need to compile libcurl using source code?

 curl-config --cflags

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

 curl-config --libs

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