From 185baf036b9bcfe1386a6fd1549ca5403ec66812 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 30 Jun 2004 11:09:16 +0000 Subject: NOBODY set TRUE after a POST makes a good HEAD now --- lib/url.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/url.c') diff --git a/lib/url.c b/lib/url.c index 59d674ca1..3fbc7b3e6 100644 --- a/lib/url.c +++ b/lib/url.c @@ -488,6 +488,9 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...) * Do not include the body part in the output data stream. */ data->set.opt_no_body = va_arg(param, long)?TRUE:FALSE; + if(data->set.opt_no_body) + /* in HTTP lingo, this means using the HEAD request */ + data->set.httpreq = HTTPREQ_HEAD; break; case CURLOPT_FAILONERROR: /* -- cgit v1.2.3