aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-01-15 23:29:16 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-01-15 23:39:46 +0000
commit27ecc22649df12410d813b1d9d4a223e08276bfa (patch)
treedaf133c2474eabac116558745a3c53eec6e985ad /docs
parent7f807f394fa0c7c1e1025959ac0655246b0ab490 (diff)
pop3-dele.c: Added missing CURLOPT_NOBODY following feedback
Diffstat (limited to 'docs')
-rw-r--r--docs/examples/pop3-dele.c3
1 files changed, 3 insertions, 0 deletions
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);