curl-users
RE: How to send a form field value that begins with '@'?
From: Kjell Ericson <Kjell.Ericson_at_haxx.se>
Date: Thu, 3 Mar 2005 13:44:00 +0100 (CET)
Date: Thu, 3 Mar 2005 13:44:00 +0100 (CET)
On Thu, 3 Mar 2005, Roth, Kevin P. wrote:
> 1. 'name=\@some-string'
> 2. 'name=@@some-string'
> 3. 'name="@some-string"'
No solution of these are 100% backward compatible. The question is which
solution that might not be in use:
1. Is someone posting the string "\@bla"?
2. Does someone have a file that starts with the character "@" (my cookiefiles
contains this letter and is therefor possible).
3. Is someone posting quote marks?
For backward-compatibility I think about a new flag like this:
curl --form-string name=@string http://somewhere.org
curl --form-file name=filename http://somewhere.org
Any thoughts?
// Kjell
Received on 2005-03-03