diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2009-12-30 16:10:42 (GMT) |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2009-12-30 16:10:42 (GMT) |
commit | 0a0788a72d72ffe40624c6e47fdf5c30a7ab8ac6 (patch) | |
tree | 6ea2148de0638fd7d63af8cf676a09bddc045bd0 /Source/cmCTest.h | |
parent | 646e71f29021d76998d1161dc00d52f00ad2b94b (diff) | |
download | CMake-0a0788a72d72ffe40624c6e47fdf5c30a7ab8ac6.zip CMake-0a0788a72d72ffe40624c6e47fdf5c30a7ab8ac6.tar.gz CMake-0a0788a72d72ffe40624c6e47fdf5c30a7ab8ac6.tar.bz2 |
Enhanced CTest HTTP Request API to support PUT file uploads.
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r-- | Source/cmCTest.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h index 2b7912c..8621b10 100644 --- a/Source/cmCTest.h +++ b/Source/cmCTest.h @@ -83,7 +83,8 @@ public: #ifdef CMAKE_BUILD_WITH_CMAKE enum HTTPMethod { HTTP_GET, - HTTP_POST + HTTP_POST, + HTTP_PUT }; /** @@ -91,7 +92,8 @@ public: */ static int HTTPRequest(std::string url, HTTPMethod method, std::string& response, - std::string fields = "", int timeout = 10); + std::string fields = "", + std::string putFile = "", int timeout = 0); #endif /** Get a testing part id from its string name. Returns PartCount |