From 7196d784d330df3030b782e097799629f4b80a61 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 12 Dec 2002 12:11:16 +0000 Subject: The first ever attempts to do pure libcurl test cases --- tests/libtest/lib500.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/libtest/lib500.c (limited to 'tests/libtest/lib500.c') 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" -- cgit v1.2.3