]> granicus.if.org Git - curl/commitdiff
pop3-dele.c: Added missing CURLOPT_NOBODY following feedback
authorSteve Holme <steve_holme@hotmail.com>
Wed, 15 Jan 2014 23:29:16 +0000 (23:29 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 15 Jan 2014 23:39:46 +0000 (23:39 +0000)
docs/examples/pop3-dele.c

index 13259656f3f163cccf041b79b4c5b7dd91e595d4..fab598f008e6e6980a3e02954bd2c1fdf4bf824f 100644 (file)
@@ -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);