diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2009-12-22 19:37:06 (GMT) |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2009-12-22 19:37:06 (GMT) |
commit | 3cb2a0ffa6f87954825cb311999fde1902b576de (patch) | |
tree | 25c17b2af4e41bbee08606554b765f3e2d2dbcf0 /Source/cmCTest.h | |
parent | 766ef1d01136747605b58c243e6074dda00667f8 (diff) | |
download | CMake-3cb2a0ffa6f87954825cb311999fde1902b576de.zip CMake-3cb2a0ffa6f87954825cb311999fde1902b576de.tar.gz CMake-3cb2a0ffa6f87954825cb311999fde1902b576de.tar.bz2 |
Move cURL dependent code out of CMakeLib to fix complex tests.
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r-- | Source/cmCTest.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h index d0b9e1e..eb88f62 100644 --- a/Source/cmCTest.h +++ b/Source/cmCTest.h @@ -80,6 +80,19 @@ public: bool Enabled; std::string Name; }; +#ifdef CMAKE_BUILD_WITH_CMAKE + 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); +#endif /** Get a testing part id from its string name. Returns PartCount if the string does not name a valid part. */ |