#include "http.h"
#include <curl/curl.h>
#include <fstream>
Go to the source code of this file.
|
static size_t | url::writer (char *data, size_t size, size_t nmemb, std::string *writerData) |
| libcurl write callback function. More...
|
|
static size_t | url::reader (char *ptr, size_t size, size_t nmemb, void *stream) |
| libcurl read callback function. More...
|
|
static CURL * | url::common_init (const std::string &sUrl, const std::string &sUserName, const std::string &sPassWord) |
| Perform common CURL initialization. More...
|
|
static CURL * | url::get_init (const std::string &sUrl, const std::string &sUserName, const std::string &sPassWord, std::string *buffer) |
| libcurl get connection initialization. More...
|
|
static CURL * | url::put_init (const std::string &sUrl, const std::string &sUserName, const std::string &sPassWord, std::ifstream *filestream, size_t filesize) |
| libcurl put connection initialization. More...
|
|
std::string | url::get (const std::string &sUrl, const std::string &sUserName, const std::string &sPassWord) |
| Get the contents of a URL. More...
|
|
size_t | url::put (const std::string &sUrl, const std::string &sFileName, const std::string &sUserName, const std::string &sPassWord) |
| Upload a file to a destination and return the transmitted bytes. More...
|
|