#include <iostream>
#include <string>
#include <fstream>
#include "curl/curl.h"
#include "curl_http.h"
using namespace std;
using namespace curl_http;
#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "wldap32.lib")
int main()
{
// global init
curl_global_init(CURL_GLOBAL_ALL);
//get post list
{
CurlHttp http;
BuffV getResp;
string getUrlStr = "https://blog.hatena.ne.jp/Linuxbee/Linuxbee.hatenablog.com/atom/entry";
auto res = http.Request(0, getUrlStr, &getResp);
cout << "GET-----------------------------------------:\n" << getResp.c_str() << endl;
if (res == CURLE_OK)
{
ofstream out;
out.open("posts.xm