diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-12-31 00:19:10 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-12-31 00:19:10 +0000 |
commit | 73a894170bce99ed71fcc764422f52a7cc4d3815 (patch) | |
tree | 81be26e74deb3a419ae86ae8a131665c64a58560 /docs/examples/simplesmtp.c | |
parent | 0aafd77fa4c6f225b656bf76c97015aee6644cac (diff) |
examples: Updated SMTP examples to set CURLOPT_UPLOAD
Diffstat (limited to 'docs/examples/simplesmtp.c')
-rw-r--r-- | docs/examples/simplesmtp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/examples/simplesmtp.c b/docs/examples/simplesmtp.c index df8516242..8ce87808c 100644 --- a/docs/examples/simplesmtp.c +++ b/docs/examples/simplesmtp.c @@ -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); |