You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
559 B

#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);
bool UploadToFTPWithDebug();
void CheckCurlFeatures();