星号是 URL 中的有效字符吗

Is asterisk a valid character in URL

这可以被认为是有效的URL吗?

http://example.com/test/*

根据规范 * 被视为保留字符。

从技术上讲,是的。正如你提到的,它是 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.