[Qemu-devel] [PATCH V2] qemu-img / curl: When fetching Content-Size use GET instead of HEAD.

2015-12-11 Thread Boris Schrijver
A server can respond different to both methods, or can block one of the two. Signed-off-by: Boris Schrijver <bo...@pcextreme.nl> Reviewed-by: John Snow <js...@redhat.com> --- V2: Impovements over V1: - Don't check for CURLE_WRITE_ERROR, on success CURLE_OK will be ret

Re: [Qemu-devel] [Qemu-block] [PATCH] qemu-img / curl: When fetching Content-Size use GET instead of HEAD.

2015-12-10 Thread Boris Schrijver
Dear John, I already send a new patch with V2. Please see that one! > On December 10, 2015 at 10:26 PM John Snow <js...@redhat.com> wrote: > > > > > On 12/08/2015 03:49 PM, Boris Schrijver wrote: > > See inline! Thanks for your response! > > > >

Re: [Qemu-devel] [PATCH v2] qemu-img / curl: When fetching Content-Size use GET instead of HEAD.

2015-12-09 Thread Boris Schrijver
c5588e94f5f0e66636b16a4ee26f0dbcf48b44c9 Author: Boris Schrijver <bo...@pcextreme.nl> 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. Sign

Re: [Qemu-devel] [Qemu-block] [PATCH] qemu-img / curl: When fetching Content-Size use GET instead of HEAD.

2015-12-08 Thread Boris Schrijver
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 <js...@redhat.com> wrote: > > > > > On 12

Re: [Qemu-devel] [PATCH] qemu-img / curl: When fetching Content-Size use GET instead of HEAD.

2015-12-08 Thread Boris Schrijver
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 <m...@tls.msk.ru> wrote: > > > 08.12.2015 00:23, Boris Schrijver wrote: > [] > > It's is therefore

[Qemu-devel] [PATCH] qemu-img / curl: When fetching Content-Size use GET instead of HEAD.

2015-12-07 Thread Boris Schrijver
)) +if (curl_easy_perform(state->curl) != 23) goto out; curl_easy_getinfo(state->curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, ); 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