]> granicus.if.org Git - curl/commitdiff
lib1507.c: Added missing set of CURLOPT_UPLOAD option
authorSteve Holme <steve_holme@hotmail.com>
Fri, 15 Nov 2013 20:35:43 +0000 (20:35 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Fri, 15 Nov 2013 21:01:10 +0000 (21:01 +0000)
Although this option should have already been set, the SMTP module can
now download information from and send instructional commands to, an
SMTP server, requiring the option to be set in order to perform a mail
transfer.

tests/libtest/lib1507.c

index 7c4e6ed06d0582553110294a4c5833dd64d10386..dec0c3bcf08d0c06a68ef477aa76d42fb5e54999 100644 (file)
@@ -89,6 +89,7 @@ int test(char *URL)
    curl_easy_setopt(curl, CURLOPT_USERNAME, USERNAME);
    curl_easy_setopt(curl, CURLOPT_PASSWORD, PASSWORD);
 #endif
+   curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
    curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
    curl_easy_setopt(curl, CURLOPT_MAIL_FROM, MAILFROM);
    curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, rcpt_list);