cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Eureka! Problem solved!

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Fri, 11 May 2007 20:32:58 -0500

On 5/11/07, Scott Taylor <scott_at_sterling-gaming.com> wrote:
>
> Wow.
>
> All I needed to do was to throw a '\' in front of the '?' and the '&'s in
> the URL curl was using.
>
> So, the problem was solved with:
> curl http://www.foo.com/index.php\?user=sst\&action=smile
> -d telephone=704 -d city=charlotte
>
> That was just waaaay too easy! I guess if I ever truly studied Unix, I'd
> have known that.

You can also put that URL in quotes to preserve the special characters.

Ralph Mitchell
Received on 2007-05-12