mirror of
				https://github.com/asdlokj1qpi233/subconverter.git
				synced 2025-10-31 05:42:31 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			956 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			956 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 webGet(std::string url, std::string proxy, unsigned int cache_ttl);
 | |
| std::string webGet(std::string url, std::string proxy, std::string &response_headers, unsigned int cache_ttl = 0);
 | |
| int webPost(std::string url, std::string data, std::string proxy, std::string auth_token, std::string *retData);
 | |
| int webPatch(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);
 | |
| 
 | |
| // Unimplemented: (CURLOPT_HTTPHEADER: Host:)
 | |
| std::string httpGet(std::string host, std::string addr, std::string uri);
 | |
| std::string httpsGet(std::string host, std::string addr, std::string uri);
 | |
| 
 | |
| #endif // WEBGET_H_INCLUDED
 |