aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib500.c
diff options
context:
space:
mode:
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"