aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib500.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-12-12 12:11:16 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-12-12 12:11:16 +0000
commit7196d784d330df3030b782e097799629f4b80a61 (patch)
treed6d90c80217f536f9db3bab83551c28e97bf0218 /tests/libtest/lib500.c
parent0f0aaf51e01822834a75dff94f1f0f44cc3d31c2 (diff)
The first ever attempts to do pure libcurl test cases
Diffstat (limited to 'tests/libtest/lib500.c')
-rw-r--r--tests/libtest/lib500.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/libtest/lib500.c b/tests/libtest/lib500.c
new file mode 100644
index 000000000..a825b930c
--- /dev/null
+++ b/tests/libtest/lib500.c
@@ -0,0 +1,12 @@
+#include "first.c"
+
+fprintf(stderr, "URL: %s\n", argv[1]);
+
+CURL *curl;
+curl = curl_easy_init();
+curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
+curl_easy_setopt(curl, CURLOPT_HEADER, TRUE);
+curl_easy_perform(curl);
+curl_easy_cleanup(curl);
+
+#include "last.c"