A server can respond different to both methods, or can block one of the two.
Signed-off-by: Boris Schrijver
Reviewed-by: John Snow
---
V2: Impovements over V1:
- Don't check for CURLE_WRITE_ERROR, on success CURLE_OK will be returned.
- Use CURLOPT_CUSTOMREQUEST instead of CURLOPT_HT
Dear John,
I already send a new patch with V2. Please see that one!
> On December 10, 2015 at 10:26 PM John Snow wrote:
>
>
>
>
> On 12/08/2015 03:49 PM, Boris Schrijver wrote:
> > See inline! Thanks for your response!
> >
> > --
> >
ommit c5588e94f5f0e66636b16a4ee26f0dbcf48b44c9
Author: Boris Schrijver
Date: Wed Dec 9 23:32:36 2015 +0100
qemu-img / curl: When fetching Content-Size use GET instead of HEAD.
A server can respond different to both methods, or can block one of the two.
Signed-off-by: Boris Schr
See inline! Thanks for your response!
--
Met vriendelijke groet / Kind regards,
Boris Schrijver
PCextreme B.V.
http://www.pcextreme.nl/contact
Tel direct: +31 (0) 118 700 215
> On December 8, 2015 at 8:40 PM John Snow wrote:
>
>
>
>
> On 12/07/2015 04:23 PM, Bor
groet / Kind regards,
Boris Schrijver
PCextreme B.V.
http://www.pcextreme.nl/contact
Tel direct: +31 (0) 118 700 215
> On December 8, 2015 at 8:56 PM Michael Tokarev wrote:
>
>
> 08.12.2015 00:23, Boris Schrijver wrote:
> []
> > It's is therefore better to use only t
sy_perform(state->curl))
+if (curl_easy_perform(state->curl) != 23)
goto out;
curl_easy_getinfo(state->curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &d);
if (d)
--
2.1.4
--
Met vriendelijke groet / Kind regards,
Boris Schrijver
PCextreme B.V.
http://www.pcextreme.nl/contact
Tel direct: +31 (0) 118 700 215