1

Can this be considered as a valid URL?

http://example.com/test/*

According to the spec * is considered as a reserved character.

Tanya
  • 354
  • 1
  • 3
  • 14
  • 2
    Yes. This will lay all your doubts to rest: http://stackoverflow.com/questions/25085992/when-should-an-asterisk-be-encoded-in-an-http-url – Samar Sep 15 '16 at 03:46
  • 1
    Possible duplicate of [Can an URL have an asterisk?](http://stackoverflow.com/questions/4644092/can-an-url-have-an-asterisk) – unor Sep 15 '16 at 18:24
  • About the problem SE’s link parser has with `*` in URLs, see: [Percent-encoding of asterisks (*) in links](http://meta.webapps.stackexchange.com/q/2254/24166) – unor Sep 15 '16 at 18:29

1 Answers1

1

Technically, yes. As you mentioned it's a reservered character, but whether you should or not is the question. As mentioned in this answer:

Even though your URL scheme seems user-friendly to you, few will think to try it, and it's likely to give unpredictable results because the meaning of wildcards in URLs is hard to discern.

Community
  • 1
  • 1
Jody Heavener
  • 2,704
  • 5
  • 41
  • 70