diff options
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index e5bb305..ae397e9 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -46,6 +46,18 @@ public: static void ExpandRegistryValues(std::string& source, KeyWOW64 view = KeyWOW64_Default); + enum HTTPMethod { + HTTP_GET, + HTTP_POST + }; + + /** + * Perform an HTTP request. + */ + static int HTTPRequest(std::string url, HTTPMethod method, + std::string& response, + std::string fields = "", int timeout = 10); + /** * Platform independent escape spaces, unix uses backslash, * windows double quotes the string. |