AFLOW
 
Loading...
Searching...
No Matches
aurostd_xhttp.h File Reference
#include <cstddef>
#include <deque>
#include <map>
#include <sstream>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  aurostd
 

Functions

void aurostd::httpGet (const string &url, std::string &output, long &response_code, std::map< std::string, std::string > &header)
 get a web resource as string
 
std::string aurostd::httpGet (const std::string &url)
 Retrieve data from an url.
 
std::string aurostd::httpGet (const std::string &url, long &response_code)
 Retrieve data from an url.
 
std::string aurostd::httpGet (const std::string &url, long &response_code, std::map< std::string, std::string > &header)
 Retrieve data from an url.
 
long aurostd::httpGetStatus (const std::string &url)
 Retrieve data from an url.
 
long aurostd::httpGetStatus (const std::string &url, std::string &output)
 Retrieve data from an url.
 
long aurostd::httpGetStatus (const std::string &url, std::string &output, std::map< std::string, std::string > &header)
 Retrieve data from an url.
 
long aurostd::httpGetStatus (const std::string &host, const std::string &path, const std::string &query, std::string &output)
 Retrieve data from url components.
 
long aurostd::httpGetStatus (const std::string &host, const std::string &path, const std::string &query, std::string &output, std::map< std::string, std::string > &header)
 Retrieve data from url components.
 
void aurostd::httpGetFile (const string &url, const string &filename, long &response_code, std::map< std::string, std::string > &header)
 
long aurostd::httpGetFileStatus (const std::string &url, const std::string &filename)
 Download data as file.
 
long aurostd::httpGetFileStatus (const std::string &url, const std::string &filename, std::map< std::string, std::string > &header)
 download data as file
 
std::string aurostd::httpGetCompressedFileContent (const string &url)
 get the content of a file from the web, decompress locally if needed
 
std::string aurostd::httpGetCompressedFileContent (const string &url, long &response_code)
 get the content of a file from the web, decompress locally if needed
 
std::string aurostd::httpGetCompressedFileContent (const string &url, long &response_code, std::map< std::string, std::string > &header)
 get the content of a file from the web, decompress locally if needed
 
template<typename utype>
size_t aurostd::httpGetTokens (const string &url, vector< utype > &tokens, const string &delimiters)
 get the data split into tokens
 
std::string aurostd::httpPercentEncodingFull (std::string work_str)