cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: sending @ for form POST

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 4 Nov 2009 10:48:28 +0100 (CET)

On Mon, 2 Nov 2009, pal hello wrote:

> How do I send "@" url-encoded or otherwise through command line ?
>
> If I try the following:
> *curl -d "login_email=my%40mymail.com&password=abcd&submit=Log+In"
> localhost:8080/mylocation *
>
> then trace-ascii shows that somehow "%4" is eaten up.

That's probably because you are on windows and it eats single % letters? Try
writing two of them.

%40 is the correct way to encode a @ letter in url encoding.

-- 
  / 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 2009-11-04