From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkcZu-0004rT-Ky for qemu-devel@nongnu.org; Wed, 14 May 2014 13:02:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkcZp-0008LY-M3 for qemu-devel@nongnu.org; Wed, 14 May 2014 13:02:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkcZp-0008LU-D7 for qemu-devel@nongnu.org; Wed, 14 May 2014 13:02:45 -0400 Message-ID: <5373A1B2.9060602@redhat.com> Date: Wed, 14 May 2014 11:02:42 -0600 From: Eric Blake MIME-Version: 1.0 References: <1399538540-5076-1-git-send-email-mbooth@redhat.com> <537276C6.5010308@redhat.com> <53739475.5090908@redhat.com> In-Reply-To: <53739475.5090908@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="06EcGeVdaScq9mjvPA4mdAPov7g6eUjo4" Subject: Re: [Qemu-devel] Curl updates List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Matthew Booth , qemu-devel@nongnu.org Cc: kwolf@redhat.com, peter.maydell@linaro.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --06EcGeVdaScq9mjvPA4mdAPov7g6eUjo4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 05/14/2014 10:06 AM, Matthew Booth wrote: >>> The new syntax is: >>> >>> http://user:password@example.com/path?query[opt1=3Dval:opt2=3Dval] >>> >=20 > 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:password@example.com/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. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --06EcGeVdaScq9mjvPA4mdAPov7g6eUjo4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTc6GyAAoJEKeha0olJ0NqsXsH/3c55lS0tls/fBxuN49TyHW+ tDV1fUITrgTWmHbY8thRrA9HcbV1gFasRBmgzTfanAn2wkgAiGCoDzFCzJXzkkDY PPtpyjVpX+6oKW9O9yG36c646Cq612CPGjwpIXxzCi6KExsJlFH6Z+sjAWXdNrry AUfuaqf4OQG8iV11SpjGB9HGs1Xh+3+/SKVOTo2d6wKjnmmMCv4kEKT2oPZvrRwR us7yDNqkw6wnopsEfTKA+y7RFo4Tu3SnU4Hbl5bLZ5XaoGjhqdiIqnK9VuO5micG MiCEuNfMurqhtnIokYmGJTkZLauajpKiSLRoa5PIaeauUrWdZD9Ob7M+cgSv8nw= =0so4 -----END PGP SIGNATURE----- --06EcGeVdaScq9mjvPA4mdAPov7g6eUjo4--