summaryrefslogtreecommitdiff
path: root/tests/libtest/lib501.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/lib501.c
parent0f0aaf51e01822834a75dff94f1f0f44cc3d31c2 (diff)
downloadcurl-7196d784d330df3030b782e097799629f4b80a61.tar.gz
The first ever attempts to do pure libcurl test cases
Diffstat (limited to 'tests/libtest/lib501.c')
-rw-r--r--tests/libtest/lib501.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/libtest/lib501.c b/tests/libtest/lib501.c
new file mode 100644
index 000000000..4199598fa
--- /dev/null
+++ b/tests/libtest/lib501.c
@@ -0,0 +1,13 @@
+#include "first.c"
+
+fprintf(stderr, "URL: %s\n", argv[1]);
+
+CURL *curl;
+CURLcode res;
+curl = curl_easy_init();
+curl_easy_setopt(curl, CURLOPT_HEADER, TRUE);
+res = curl_easy_perform(curl);
+curl_easy_cleanup(curl);
+
+return res;
+#include "last.c"