#include <curl.h>
Public Member Functions | |
| CCurl () | |
| ~CCurl () | |
| void | fetchURI (const char *uri) |
| long | getCode () |
| char * | getData () |
Static Protected Member Functions | |
| static size_t | write_data (void *ptr, size_t size, size_t nmemb, void *userp) |
Sample usage looks like this:
CCurl fetcher; fetcher.fetchURI( "http://localhost/" ); data = fetcher.getData(); HTTP_Response = fetcher.getCode();
|
|
Constructor.
|
|
|
Destructor. Tidy up and free memory. |
|
|
Download the named URI object.
|
|
|
Get the HTTP status code for the previous transaction.
|
|
|
get the data from the page/object.
|
|
||||||||||||||||||||
|
Callback routine for libCurl.
|
1.4.2