curl/tests/data/test1560
Daniel Stenberg efffa66f65
urlapi: skip a strlen(), pass in zero
... to let curl_easy_escape() itself do the strlen. This avoids a (false
positive) Coverity warning and it avoids us having to store the strlen()
return value in an int variable.

Reviewed-by: Daniel Gustafsson
Closes #7862
2021-10-15 23:22:14 +02:00

48 lines
583 B
Plaintext

<testcase>
<info>
<keywords>
unittest
URLAPI
</keywords>
</info>
#
# Client-side
<client>
<server>
none
</server>
<features>
file
https
http
pop3
smtp
imap
ldap
dict
ftp
ipv6
</features>
<name>
URL API
</name>
<tool>
lib%TESTNUMBER
</tool>
</client>
<verify>
<stdout>
we got [fe80::20c:29ff:fe9c:409b]
we got https://[::1]/hello.html
we got https://example.com/hello.html
we got https://[fe80::20c:29ff:fe9c:409b%25eth0]/hello.html
we got [fe80::20c:29ff:fe9c:409b]
we got eth0
we got https://[fe80::20c:29ff:fe9c:409b%25clown]/hello.html
success
</stdout>
</verify>
</testcase>