curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: & in the URL

From: Ray Satiro <raysatiro_at_yahoo.com>
Date: Sat, 24 Mar 2018 15:10:15 -0400

On 3/24/2018 3:38 AM, Mike Lambert wrote:
>
> Yes I am using �www.abc.com <http://www.abc.com>�.
>
> �
>
> I can�t give you the real URL because it is private and secure �.. sorry.
>
> �
>
> But anything that is preceded by the & is interpreted as a command.
>
> �
>
> www.abc.com/&aaaaaa <http://www.abc.com/&aaaaaa> would respond with
> aaaaa is not a valid command.
>
> �
>
> In your example it would respond that baz is an invalid command.
>
> "http://httpbin.org/get?foo=bar&baz=qux"
> <http://httpbin.org/get?foo=bar&baz=qux>
>
> �
>
> Just to check .. what is the URL encoding value or the ASCII value ..
> of the double quote that you are referring to ? �. %22 ..?�
>

It would or it did? Did you actually try my example, and did it respond
that way? Can you show us the output of that? What command interpreter
and version of Windows are you using? Don't URL-encode the double quotes
surrounding the URL.

curl "http://httpbin.org/get?foo=bar&baz=qux"

Also please stop top-posting it makes the conversation hard to follow. [1]

[1]: https://curl.haxx.se/mail/etiquette.html#Do_Not_Top_Post

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-03-24