prgrammer
prgrammer

Reputation: 53

Escaping "#" sign

I am trying to use wget with a url that includes a "#" sign. No matter what I do to escape the character, it doesn't work. I've used \, ', and ". But none of them work. Does any one have any suggestions?

Thank you!

Upvotes: 3

Views: 6408

Answers (3)

Tyler Eaves
Tyler Eaves

Reputation: 13121

Are you quoting the url? It shouldn't be a problem if you are.

My guess is you're doing something like:

wget http://foo.com/#!/blah

Instead of:

wget "http://foo.com/#!/blah"

# is the shell script comment character.

Upvotes: 0

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798516

Send it as %23 if you really mean for it to have a hash. If you're trying to send a fragment, don't bother since the server won't care about it regardless.

Upvotes: 5

user834697
user834697

Reputation: 235

maybe put uri around'' ? I believe it works

Upvotes: 2

Related Questions