Page 1 of 1

&'s in WGET URLs

Posted: 21 Sep 2016 11:45
by (_osd_)
Hello,
how can I use &'s in a url in a WGET-command?
For example:
http://www.test.com?name=bob&gender=male

Re: &'s in WGET URLs

Posted: 21 Sep 2016 11:48
by Squashman
Did you try "quotes"?

Re: &'s in WGET URLs

Posted: 21 Sep 2016 12:03
by (_osd_)
@SquashMan Yes, but it did not work.

Re: &'s in WGET URLs

Posted: 21 Sep 2016 12:11
by miskox

Code: Select all

http://www.test.com?name=bob^&gender=male


Saso

Re: &'s in WGET URLs

Posted: 21 Sep 2016 12:23
by Squashman
(_osd_) wrote:@SquashMan Yes, but it did not work.

Strange. I always put quotes around all my links when using WGET. Just tried one with an ampersand in it and it worked for me.

Re: &'s in WGET URLs

Posted: 21 Sep 2016 18:59
by foxidrive
(_osd_) wrote:@SquashMan Yes, but it did not work.


It will work. Try it again and show the command line here if it fails again.