&'s in WGET URLs

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
(_osd_)
Posts: 25
Joined: 01 Mar 2015 07:41

&'s in WGET URLs

#1 Post by (_osd_) » 21 Sep 2016 11:45

Hello,
how can I use &'s in a url in a WGET-command?
For example:
http://www.test.com?name=bob&gender=male

Squashman
Expert
Posts: 4465
Joined: 23 Dec 2011 13:59

Re: &'s in WGET URLs

#2 Post by Squashman » 21 Sep 2016 11:48

Did you try "quotes"?

(_osd_)
Posts: 25
Joined: 01 Mar 2015 07:41

Re: &'s in WGET URLs

#3 Post by (_osd_) » 21 Sep 2016 12:03

@SquashMan Yes, but it did not work.

miskox
Posts: 553
Joined: 28 Jun 2010 03:46

Re: &'s in WGET URLs

#4 Post by miskox » 21 Sep 2016 12:11

Code: Select all

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


Saso

Squashman
Expert
Posts: 4465
Joined: 23 Dec 2011 13:59

Re: &'s in WGET URLs

#5 Post by Squashman » 21 Sep 2016 12:23

(_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.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: &'s in WGET URLs

#6 Post by foxidrive » 21 Sep 2016 18:59

(_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.

Post Reply