examples: Updated SMTP examples to set CURLOPT_UPLOAD

This commit is contained in:
Steve Holme 2013-12-31 00:19:10 +00:00
parent 0aafd77fa4
commit 73a894170b
3 changed files with 5 additions and 1 deletions

View file

@ -62,6 +62,7 @@ int main(void)
* as a FILE pointer) as shown here.
*/
curl_easy_setopt(curl, CURLOPT_READDATA, stdin);
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
/* send the message (including headers) */
res = curl_easy_perform(curl);