[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Curl updates
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] Curl updates |
Date: |
Wed, 14 May 2014 11:02:42 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
On 05/14/2014 10:06 AM, Matthew Booth wrote:
>>> The new syntax is:
>>>
>>> http://user:address@hidden/path?query[opt1=val:opt2=val]
>>>
>
> A URI can, by definition, contain a query string, and we cannot assume
> that it won't. In fact, the use case I'm specifically interested in
> always includes a query string. If we try to overload the query
> string, we're adding heuristic fuzziness. My syntax makes the option
> string distinct from the URI, so no heuristics are required. It's also
> very clear to read IMHO.
But your proposed syntax is no longer a URI. I'd much rather see:
'json:{"driver":"curl","filename":"http://user:address@hidden/path?query","opt1":"val","opt2":"val"}'
which then shares the same syntax as all other drivers for creating a
flat string that encodes multiple pieces of information, rather than
having to overload the filename to be a non-URI encoding locally useful
information.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH 3/4] curl: Add usage documentation, (continued)
- [Qemu-devel] [PATCH 3/4] curl: Add usage documentation, Matthew Booth, 2014/05/08
- [Qemu-devel] [PATCH 2/4] curl: Add sslverify option, Matthew Booth, 2014/05/08
- [Qemu-devel] [PATCH 4/4] curl: Fix build when curl_multi_socket_action isn't available, Matthew Booth, 2014/05/08
- Re: [Qemu-devel] Curl updates, Eric Blake, 2014/05/13
- Re: [Qemu-devel] Curl updates, Matthew Booth, 2014/05/14