mirror of
https://github.com/curl/curl.git
synced 2026-08-24 14:33:33 +03:00
examples: Updated SMTP examples to set CURLOPT_UPLOAD
This commit is contained in:
parent
0aafd77fa4
commit
73a894170b
3 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue