#pragma once

#include <vector>
#include <iostream>
#include <curl/curl.h>
#include <string>
#include <regex>
#include "tc_log.h"

using namespace std;
struct HeaderData {
	std::string value;
	bool found; // ¼ÇÂ¼ÊÇ·ñÕÒµ½
};

int sendFileByFtp(string ftp_url, string file_path, string file_dir, string user, string pwd);
string postJSON(string url, string token, vector<string> header, string body, long& http_code, string& error);
string postJSON(string url, string body, long& http_code, string& error);