#include <curl/curl.h>
#include <string>
+#include <map>
namespace ArdourCurl {
size_t size;
};
+ struct HeaderInfo {
+ std::map<std::string, std::string> h;
+ };
+
char* get (const char* url);
std::string get (const std::string& url) {
long int status () const { return _status; }
+ std::map<std::string, std::string> header () const { return nfo.h; }
+
char* escape (const char* s, int l) const {
return curl_easy_escape (_curl, s, l);
}
char error_buffer[CURL_ERROR_SIZE];
struct MemStruct mem;
+ struct HeaderInfo nfo;
static const char* ca_path;
static const char* ca_info;