From: Steve Holme Date: Wed, 15 Jan 2014 23:29:16 +0000 (+0000) Subject: pop3-dele.c: Added missing CURLOPT_NOBODY following feedback X-Git-Tag: curl-7_35_0~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27ecc22649df12410d813b1d9d4a223e08276bfa;p=curl pop3-dele.c: Added missing CURLOPT_NOBODY following feedback --- diff --git a/docs/examples/pop3-dele.c b/docs/examples/pop3-dele.c index 13259656f..fab598f00 100644 --- a/docs/examples/pop3-dele.c +++ b/docs/examples/pop3-dele.c @@ -45,6 +45,9 @@ int main(void) /* Set the DELE command */ curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELE"); + /* Do not perform a transfer as DELE returns no data */ + curl_easy_setopt(curl, CURLOPT_NOBODY, 1L); + /* Perform the custom request */ res = curl_easy_perform(curl);