summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.h
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-12-30 16:10:42 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-12-30 16:10:42 (GMT)
commit0a0788a72d72ffe40624c6e47fdf5c30a7ab8ac6 (patch)
tree6ea2148de0638fd7d63af8cf676a09bddc045bd0 /Source/cmCTest.h
parent646e71f29021d76998d1161dc00d52f00ad2b94b (diff)
downloadCMake-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.h6
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