curl/tests/data/test1560
Daniel Stenberg 831a151484
urlapi: consume trailing dots after IPv4 numerical addresses
If the hostname is specified as an IPv4 numerical address and it is
followed by a single dot, acccept that as a valid IPv4 and remove the
dot when normalizing.

This prevents otherwise legitimate IPv4 hostnames to have trailing dots.
Seems to match what browsers do.

Extended test 1560 to verify.

Closes #21635
2026-05-15 23:38:50 +02:00

43 lines
396 B
XML

<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
unittest
urlapi
url
</keywords>
</info>
# Client-side
<client>
<setenv>
LC_ALL=C.UTF-8
</setenv>
<features>
file
https
http
pop3
smtp
imap
ldap
dict
ftp
</features>
<name>
URL API
</name>
<tool>
lib%TESTNUMBER
</tool>
</client>
<verify>
<stdout>
success
</stdout>
<limits>
Allocations: 3200
</limits>
</verify>
</testcase>