2016-07-10 01:18:13 +01:00
|
|
|
#ifndef BOT_HTTP_HTTPHELPER
|
|
|
|
#define BOT_HTTP_HTTPHELPER
|
|
|
|
|
2016-07-05 00:51:53 +01:00
|
|
|
#include <iostream>
|
|
|
|
|
2016-07-10 01:18:13 +01:00
|
|
|
#include <curl/curl.h>
|
|
|
|
|
2016-08-10 17:07:41 +01:00
|
|
|
namespace HTTP {
|
2016-07-21 14:07:05 +01:00
|
|
|
std::string post_request(std::string url, std::string content_type, std::string data, long *response_code);
|
2016-08-10 17:07:41 +01:00
|
|
|
std::string get_request(std::string url, long *response_code);
|
|
|
|
}
|
2016-07-10 01:18:13 +01:00
|
|
|
|
|
|
|
#endif
|