diff options
author | Tobias Hintze <th-git@thzn.de> | 2018-11-02 21:24:14 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-11-22 13:40:51 +0100 |
commit | 5b4cce2e36c01625ce193ea7e790c9b26b3cf0c8 (patch) | |
tree | 8a17941d9792462cacfdd16506a82305b4e06e5b /docs | |
parent | 23666978069dcd8dfcc7560c5cebe5410c5fdd81 (diff) |
host names: allow trailing dot in name resolve, then strip it
Delays stripping of trailing dots to after resolving the hostname.
Fixes #3022
Closes #3222
Diffstat (limited to 'docs')
-rw-r--r-- | docs/KNOWN_BUGS | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/KNOWN_BUGS b/docs/KNOWN_BUGS index 07007eea8..dca9967ab 100644 --- a/docs/KNOWN_BUGS +++ b/docs/KNOWN_BUGS @@ -167,7 +167,8 @@ problems may have been fixed or changed somewhat since this was written! When given a URL with a trailing dot for the host name part: "https://example.com./", libcurl will strip off the dot and use the name without a dot internally and send it dot-less in HTTP Host: headers and in - the TLS SNI field. + the TLS SNI field. For the purpose of resolving the name to an address + the hostname is used as is without any change. The HTTP part violates RFC 7230 section 5.4 but the SNI part is accordance with RFC 6066 section 3. @@ -186,10 +187,10 @@ problems may have been fixed or changed somewhat since this was written! Our current approach allows a knowing client to send a custom HTTP header with the dot added. - It can also be noted that while adding a trailing dot to the host name in - most (all?) cases will make the name resolve to the same set of IP addresses, - many HTTP servers will not happily accept the trailing dot there unless that - has been specifically configured to be a fine virtual host. + In a few cases there is a difference in name resolving to IP addresses with + a trailing dot, but it can be noted that many HTTP servers will not happily + accept the trailing dot there unless that has been specifically configured + to be a fine virtual host. If URLs with trailing dots for host names become more popular or even just used more than for just plain fun experiments, I'm sure we will have reason |