cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: How to send a form field value that begins with '@'?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 3 Mar 2005 10:06:36 +0100 (CET)

On Wed, 23 Feb 2005, David Houlder wrote:

> curl --form name=@filename http://somewhere.org
> it does a multipart form post, and transfers the contents of filename.
>
> OK then: how do I transfer a literal value that starts with '@'. Is there
> any way of sending a literal 'name=@some-string'? As far as I can tell from
> reading the curl man page, the 'value' part isn't supposed to be URL
> encoded, so '@' is a perfectly valid character that you might want to send.

Looking at the code, and thinking about it, I think you've found a flaw since
I don't think you can send a literal '@' letter first in a string with the
command line tool.

You have any suggestion on a syntax that would enable this without breaking
backwards compatibility?

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-03-03