diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-04-18 19:41:04 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-04-18 19:41:04 +0000 |
commit | 63d109f7be8ddd027c86355dd09d02189b731a46 (patch) | |
tree | 42ee3aeb062c4a2de48fa534b6e2ff19aeea902a /tests/libtest/lib521.c | |
parent | c904b6b5bf6c6e980480e63cd066dc2ae2aace23 (diff) | |
download | curl-63d109f7be8ddd027c86355dd09d02189b731a46.tar.gz |
Olivier reported that even though he used CURLOPT_PORT, libcurl clearly still
used the default port. He was right. I fixed the problem and added the test
cases 521, 522 and 523 to verify the fix.
Diffstat (limited to 'tests/libtest/lib521.c')
-rw-r--r-- | tests/libtest/lib521.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/libtest/lib521.c b/tests/libtest/lib521.c new file mode 100644 index 000000000..96630f303 --- /dev/null +++ b/tests/libtest/lib521.c @@ -0,0 +1,16 @@ +#include "test.h" + +int test(char *URL) +{ + CURLcode res; + CURL *curl = curl_easy_init(); + curl_easy_setopt(curl, CURLOPT_URL, URL); + curl_easy_setopt(curl, CURLOPT_PORT, atoi(arg2)); + curl_easy_setopt(curl, CURLOPT_USERPWD, "xxx:yyy"); + curl_easy_setopt(curl, CURLOPT_VERBOSE, TRUE); + + res = curl_easy_perform(curl); + curl_easy_cleanup(curl); + return (int)res; +} + |