diff -uNpr curl-7.29.0/src/tool_operate.c curl-7.29.0/src/tool_operate.c --- curl-7.29.0/src/tool_operate.c 2013-02-06 10:47:19.000000000 +0100 +++ curl-7.29.0/src/tool_operate.c 2013-08-11 21:21:47.397377700 +0200 @@ -877,13 +877,13 @@ int operate(struct Configurable *config, my_setopt(curl, CURLOPT_NOPROGRESS, config->noprogress); if(config->no_body) { my_setopt(curl, CURLOPT_NOBODY, 1); - my_setopt(curl, CURLOPT_HEADER, 1); + my_setopt(curl, CURLOPT_HEADER, (long)1); } /* If --metalink is used, we ignore --include (headers in output) option because mixing headers to the body will confuse XML parser and/or hash check will fail. */ else if(!config->use_metalink) - my_setopt(curl, CURLOPT_HEADER, config->include_headers); + my_setopt(curl, CURLOPT_HEADER, (long)config->include_headers); #if !defined(CURL_DISABLE_PROXY) {