И URL-адреса Java, и средство проверки Apache анализируют и проверяют URL-адреса в теме без ошибок.Однако, прочитав RFC 1034, 1123, 1738 и 2396, я понял, что они не должны быть действительными, потому что даже если '#' и '?' считаются частью (или началом) фрагмента или части запроса, они должны быть отделены от имени домена знаком '/'.
Правильно ли я читаю RFC или инструменты неправильные?
РЕДАКТИРОВАНИЕ: Добавление рассуждений.
RFC#1738 (https://www.ietf.org/rfc/rfc1738.txt), раздел «3.3. HTTP»:
Код: Выделить всё
...
An HTTP URL takes the form:
http://:
/?
where and are as described in Section 3.1. If :
is omitted, the port defaults to 80. No user name or password is
allowed. is an HTTP selector, and is a query
string. The is optional, as is the and its
preceding "?". If neither nor is present, the "/"
may also be omitted.
...
Код: Выделить всё
...
host
The fully qualified domain name of a network host, or its IP
address as a set of four decimal digit groups separated by
".". Fully qualified domain names take the form as described
in Section 3.5 of RFC 1034 [13] and Section 2.1 of RFC 1123
[5]: a sequence of domain labels separated by ".", each domain
label starting and ending with an alphanumerical character and
possibly also containing "-" characters. The rightmost domain
label will never start with a digit, though, which
syntactically distinguishes all domain names from the IP
addresses.
...
Подробнее здесь: https://stackoverflow.com/questions/785 ... -com-valid