mirror of
https://github.com/curl/curl.git
synced 2026-08-04 18:26:13 +03:00
url: bad CURLOPT_CONNECT_TO syntax now returns error
Added test 3020 to verify Closes #7183
This commit is contained in:
parent
4b3d8f3558
commit
d8dcb399b8
3 changed files with 47 additions and 11 deletions
|
|
@ -232,8 +232,4 @@ test2100 \
|
|||
\
|
||||
test3000 test3001 test3002 test3003 test3004 test3005 test3006 test3007 \
|
||||
test3008 test3009 test3010 test3011 test3012 test3013 test3014 test3015 \
|
||||
test3016 \
|
||||
\
|
||||
test3017 test3018 \
|
||||
\
|
||||
test3019
|
||||
test3016 test3017 test3018 test3019 test3020 \
|
||||
|
|
|
|||
36
tests/data/test3020
Normal file
36
tests/data/test3020
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
HTTP
|
||||
HTTP GET
|
||||
--connect-to
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
</reply>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<name>
|
||||
HTTP with invalid --connect-to syntax
|
||||
</name>
|
||||
<command>
|
||||
--connect-to ::example.com:example.com http://example.com:%HTTPPORT/%TESTNUMBER
|
||||
</command>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<errorcode>
|
||||
49
|
||||
</errorcode>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue