summaryrefslogtreecommitdiffstats
path: root/Source/CTest/Curl/Testing/simple.c
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-01-07 02:17:48 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-01-07 02:17:48 (GMT)
commit6ecc00601c90fc656eb92cdadf2758adba2816c3 (patch)
tree294bfc17495039feb8feaadf1fbba660eb4eb353 /Source/CTest/Curl/Testing/simple.c
parentbaeba76200afb19cf8ea4e67025c1916ac210b13 (diff)
downloadCMake-6ecc00601c90fc656eb92cdadf2758adba2816c3.zip
CMake-6ecc00601c90fc656eb92cdadf2758adba2816c3.tar.gz
CMake-6ecc00601c90fc656eb92cdadf2758adba2816c3.tar.bz2
Initial import
Diffstat (limited to 'Source/CTest/Curl/Testing/simple.c')
-rw-r--r--Source/CTest/Curl/Testing/simple.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/Source/CTest/Curl/Testing/simple.c b/Source/CTest/Curl/Testing/simple.c
new file mode 100644
index 0000000..6dd6050
--- /dev/null
+++ b/Source/CTest/Curl/Testing/simple.c
@@ -0,0 +1,28 @@
+/*****************************************************************************
+ * _ _ ____ _
+ * Project ___| | | | _ \| |
+ * / __| | | | |_) | |
+ * | (__| |_| | _ <| |___
+ * \___|\___/|_| \_\_____|
+ *
+ * $Id$
+ */
+
+#include "curl/curl.h"
+
+int main(void)
+{
+ CURL *curl;
+ CURLcode res;
+
+ curl_global_init(CURL_GLOBAL_DEFAULT);
+ curl = curl_easy_init();
+ if(curl) {
+ curl_easy_setopt(curl, CURLOPT_URL, "http://www.cmake.org/HTML/Index.html");
+ res = curl_easy_perform(curl);
+
+ /* always cleanup */
+ curl_easy_cleanup(curl);
+ }
+ return 0;
+}