Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 367
prgrammer Avatar asked May 14 '26 05:05

prgrammer


2 Answers

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.

like image 200
Ignacio Vazquez-Abrams Avatar answered May 16 '26 21:05

Ignacio Vazquez-Abrams


maybe put uri around'' ? I believe it works

like image 24
user834697 Avatar answered May 16 '26 21:05

user834697



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!