Here is some information:
I have downloaded the LibCurl libraries and put it in my include folder.
I am using TDM-GCC 4.6.1 as my compiler.
I am using Orwell Dev C++ 5.4.1 as my IDE.
I am a total beginner in o files, a files, anything other than .h/.hpp and .c/.cpp files.
I have no idea how to use command line to link.
Please do not link me to the tutorial, as that does not help. A step by step process would be great, and it would help way more people than me because linking seems to be a programming hot-topic.
Thank you,
programmer *Usandfriends;
A very simple HTTP client (C++ wrapper for curl). Requires libcurl http://curl.haxx.se
Your libcurl package should have come with an examples directory, have you looked there? Ftpupload.c is a good place to start. As for the static callback, it just means that any callback function that you pass to curl must be declared as a static member function if it is encapsulated in a class. Libcurl is free, thread-safe, IPv6 compatible, feature rich, well supported, fast, thoroughly documented and is already used by many known, big and successful companies. Go to the regular curl download page and get the latest curl package, or one of the specific libcurl packages listed. You use libcurl with the provided C API. Libcurl-tutorial - libcurl programming tutorial Objective. This document attempts to describe the general principles and some basic approaches to consider when programming with libcurl. The text will focus mainly on the C interface but might apply fairly well on other interfaces as well as they usually follow the C one pretty closely.
If you are using Visual C++ your also have to install msinttypes (headers are provided in 'include' directory).
Usage
Do a GET request:
Do a POST request:
Do a POST request with RAW data:
Downloading a file:
Uploading a file:
Do a PUT request:
Uploading a file to FTP:
Using proxy:
Custom request header:
C++ Libcurl Example
Libcurl Download
If you want to use HTTPS, you should compile libcurl with openssl support (you could also use WinSSL on Windows).If you compile libcurl for windows with OpenSSL support (instead of WinSSL), you should put 'curl-ca-bundle.crt' file into your application's directory).