Programming with cURLpp
Jean-Philippe Barrette-LaPierre
January 25, 2006
1 About this Document
This document attempts to describe the general principles and some basic
approaches to consider when programming with cURLpp. Don’t forget that
cURLpp is a C++wrapper of libcurl, so cURLpp needs libcurl to be installed
already.
This document will refer to ’the user’ as the person writing the source
code that uses cURLpp. That would probably be you or someone in a similar
position. What will be generally refered to as ’the program’ will b e the
collective source code that you write and that is using cURLpp for transfers.
The program is outside cURLpp and cURLpp is outside of the program.
To get more details on all options and functions described herein, please
refer to their respective man pages. You should always have in mind that this
is a C++wrapper of libcurl. It would be unproductive to duplicate libcurl’s
documentation here, so this document will show you how to interact with
cURLpp, but you should read the libcurl programming tutorial, which this
document is strongly inspired from, and the libcurl man pages.
2 Building
There are many different ways to build C++ programs. This chapter will
assume a unix-style build process. If you use a different build system, you can
still read this to get general information that may apply to your environment
as well. Note that cURLpp need libcurl to be already installed.
1