Toast/TriviaBot/bot/http/HTTPHelper.hpp
Jack b31eaef6d6 Bot is now basically functional
Big tidy up, new question source.
2016-07-10 01:18:13 +01:00

16 lines
324 B
C++

#ifndef BOT_HTTP_HTTPHELPER
#define BOT_HTTP_HTTPHELPER
#include <iostream>
#include <curl/curl.h>
class HTTPHelper {
public:
std::string post_request(std::string url, std::string content_type, std::string data);
private:
static size_t write_callback(void *contents, size_t size, size_t nmemb, void *userp);
};
#endif