Toast/TriviaBot/bot/http/HTTPHelper.hpp

16 lines
345 B
C++
Raw Normal View History

#ifndef BOT_HTTP_HTTPHELPER
#define BOT_HTTP_HTTPHELPER
2016-07-05 00:51:53 +01:00
#include <iostream>
#include <curl/curl.h>
2016-07-05 00:51:53 +01:00
class HTTPHelper {
public:
std::string post_request(std::string url, std::string content_type, std::string data, long *response_code);
2016-07-05 00:51:53 +01:00
private:
static size_t write_callback(void *contents, size_t size, size_t nmemb, void *userp);
};
#endif