mirror of
https://github.com/curl/curl.git
synced 2026-07-24 10:57:16 +03:00
test1675: unit tests for URL API helper functions
- ipv4_normalize - urlencode_str - ipv6_parse - parse_file urlapi: make the string URL encoder normalize to uppercase percent-encoding Closes #21296
This commit is contained in:
parent
d7a991cc9b
commit
0b4ebebb06
8 changed files with 414 additions and 46 deletions
|
|
@ -223,7 +223,7 @@ test1650 test1651 test1652 test1653 test1654 test1655 test1656 test1657 \
|
|||
test1658 test1659 test1660 test1661 test1662 test1663 test1664 test1665 \
|
||||
test1666 test1667 test1668 test1669 \
|
||||
\
|
||||
test1670 test1671 test1672 test1673 test1674 \
|
||||
test1670 test1671 test1672 test1673 test1674 test1675 \
|
||||
\
|
||||
test1680 test1681 test1682 test1683 test1684 test1685 \
|
||||
\
|
||||
|
|
|
|||
18
tests/data/test1675
Normal file
18
tests/data/test1675
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="US-ASCII"?>
|
||||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
unittest
|
||||
urlapi
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
<client>
|
||||
<features>
|
||||
unittest
|
||||
</features>
|
||||
<name>
|
||||
URL API unit tests
|
||||
</name>
|
||||
</client>
|
||||
</testcase>
|
||||
|
|
@ -37,7 +37,7 @@ a few bytes
|
|||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="headers">
|
||||
PUT /we/want/%TESTNUMBERte%5b%5dst.txt HTTP/1.1
|
||||
PUT /we/want/%TESTNUMBERte%5B%5Dst.txt HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue