Skip to content

Commit 966f959

Browse files
author
Sebastiano Merlino
committed
Added new tests
1 parent d680ee8 commit 966f959

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

test/basic.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,27 @@ LT_BEGIN_AUTO_TEST(basic_suite, complete)
149149
LT_ASSERT_EQ(res, 0);
150150
curl_easy_cleanup(curl);
151151

152+
curl = curl_easy_init();
153+
curl_easy_setopt(curl, CURLOPT_URL, "localhost:8080/base");
154+
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "PUT");
155+
res = curl_easy_perform(curl);
156+
LT_ASSERT_EQ(res, 0);
157+
curl_easy_cleanup(curl);
158+
159+
curl = curl_easy_init();
160+
curl_easy_setopt(curl, CURLOPT_URL, "localhost:8080/base");
161+
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "HEAD");
162+
res = curl_easy_perform(curl);
163+
LT_ASSERT_EQ(res, 0);
164+
curl_easy_cleanup(curl);
165+
166+
curl = curl_easy_init();
167+
curl_easy_setopt(curl, CURLOPT_URL, "localhost:8080/base");
168+
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "CONNECT");
169+
res = curl_easy_perform(curl);
170+
LT_ASSERT_EQ(res, 0);
171+
curl_easy_cleanup(curl);
172+
152173
curl = curl_easy_init();
153174
curl_easy_setopt(curl, CURLOPT_URL, "localhost:8080/base");
154175
curl_easy_setopt(curl, CURLOPT_POST, 1L);

0 commit comments

Comments
 (0)