mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-28 12:22:37 +00:00
Fix compatibility issue for some ShadowsocksD subscription. Fix some cross-platform configuration file reader bugs. Add upload to Gist function. Add append MANAGED-CONFIG to Surge configuration function. Clean up codes.
20 lines
721 B
C++
20 lines
721 B
C++
#ifndef WEBGET_H_INCLUDED
|
|
#define WEBGET_H_INCLUDED
|
|
|
|
#include <string>
|
|
|
|
#ifdef _WIN32
|
|
#include <ws2tcpip.h>
|
|
#endif // _WIN32
|
|
|
|
#include "misc.h"
|
|
|
|
std::string webGet(std::string url, std::string proxy = "");
|
|
std::string httpGet(std::string host, std::string addr, std::string uri);
|
|
std::string httpsGet(std::string host, std::string addr, std::string uri);
|
|
int curlPost(std::string url, std::string data, std::string proxy, std::string auth_token, std::string *retData);
|
|
int curlPatch(std::string url, std::string data, std::string proxy, std::string auth_token, std::string *retData);
|
|
std::string buildSocks5ProxyString(std::string addr, int port, std::string username, std::string password);
|
|
|
|
#endif // WEBGET_H_INCLUDED
|