diff options
author | B Stack <bgstack15@gmail.com> | 2019-07-15 08:13:44 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2019-07-15 08:13:44 -0400 |
commit | e195d3217826d61ab0d7ca7e2032271f5066a7df (patch) | |
tree | 222d90397f9ee1cf91de443fedc97fdaf5f33d14 /zen/http.h | |
parent | Merge branch '10.13' into 'master' (diff) | |
download | FreeFileSync-e195d3217826d61ab0d7ca7e2032271f5066a7df.tar.gz FreeFileSync-e195d3217826d61ab0d7ca7e2032271f5066a7df.tar.bz2 FreeFileSync-e195d3217826d61ab0d7ca7e2032271f5066a7df.zip |
add upstream 10.14
Diffstat (limited to 'zen/http.h')
-rw-r--r-- | zen/http.h | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -15,7 +15,7 @@ namespace zen { /* - thread-safe! (Window/Linux/macOS) - - HTTPS supported only for Windows + - Linux/macOS: init OpenSSL before use! */ class HttpInputStream { @@ -36,9 +36,16 @@ private: }; -HttpInputStream sendHttpGet (const Zstring& url, const Zstring& userAgent, const IOCallback& notifyUnbufferedIO /*throw X*/); //throw SysError -HttpInputStream sendHttpPost(const Zstring& url, const Zstring& userAgent, const IOCallback& notifyUnbufferedIO /*throw X*/, // - const std::vector<std::pair<std::string, std::string>>& postParams); +HttpInputStream sendHttpGet(const Zstring& url, + const Zstring& userAgent, + const Zstring* caCertFilePath /*optional: enable certificate validation*/, + const IOCallback& notifyUnbufferedIO /*throw X*/); //throw SysError + +HttpInputStream sendHttpPost(const Zstring& url, + const std::vector<std::pair<std::string, std::string>>& postParams, + const Zstring& userAgent, + const Zstring* caCertFilePath /*optional: enable certificate validation*/, + const IOCallback& notifyUnbufferedIO /*throw X*/); bool internetIsAlive(); //noexcept std::string xWwwFormUrlEncode(const std::vector<std::pair<std::string, std::string>>& paramPairs); |