tests: Add test for CURLOPT_HTTP200ALIASES

This commit is contained in:
Vladimir Panteleev 2021-12-20 17:55:33 +00:00 committed by Daniel Stenberg
parent 1b9f1f6055
commit 2c1dbc1af0
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 112 additions and 2 deletions

View file

@ -236,4 +236,4 @@ test2200 test2201 test2202 test2203 test2204 test2205 \
test3000 test3001 test3002 test3003 test3004 test3005 test3006 test3007 \
test3008 test3009 test3010 test3011 test3012 test3013 test3014 test3015 \
test3016 test3017 test3018 test3019 test3020 test3021 test3022 test3023 \
test3024
test3024 test3025

47
tests/data/test3025 Normal file
View file

@ -0,0 +1,47 @@
<testcase>
<info>
<keywords>
HTTP
HTTP GET
</keywords>
</info>
#
# Server-side
<reply>
<data>
ICY 200 OK
Content-Length: 7
MooMoo
</data>
</reply>
#
# Client-side
<client>
<server>
http
</server>
<features>
!hyper
</features>
<name>
CURLOPT_HTTP200ALIASES
</name>
<tool>
lib%TESTNUMBER
</tool>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<errorcode>
0
</errorcode>
</verify>
</testcase>