summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-12-21 20:19:57 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-12-21 20:19:57 (GMT)
commit3ff0b940556f5e310daa1160c5d2844e63ffeb38 (patch)
tree3d843e45b73935199fa3347f19237c592624793a /Source/cmSystemTools.h
parent0bfb954cf8c4b0cbc111c3381916fedfd382b1c0 (diff)
downloadCMake-3ff0b940556f5e310daa1160c5d2844e63ffeb38.zip
CMake-3ff0b940556f5e310daa1160c5d2844e63ffeb38.tar.gz
CMake-3ff0b940556f5e310daa1160c5d2844e63ffeb38.tar.bz2
Added functionality to allow CTest to easily access web APIs. This will be used for better communication with CDash.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h12
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.