cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Remove or replace automatically created ampersand (&) as a separating symbol

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 9 Jan 2012 23:55:26 +0100 (CET)

On Mon, 9 Jan 2012, Daniel Stenberg wrote:

> I consider it to be a bug to insert that ampersand prepended to the data, it
> is meant to be put as a separator between separate pieces of data.

Hm, or perhaps not. It is quite deliberately there to "fix" this case:

  curl -G -d "name=Daniel" http://localhost/?iq=verylow

So if there would be a change to this behavior, it would probably have to
check the trailing letter of the existing URL and act according to what's
there.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-01-09