mirror of
https://github.com/curl/curl.git
synced 2026-08-25 09:03:32 +03:00
parent
e2a23d5d0d
commit
460ead61b6
7 changed files with 124 additions and 6 deletions
|
|
@ -276,6 +276,8 @@ test3032 \
|
|||
test3100 test3101 test3102 test3103 test3104 test3105 \
|
||||
\
|
||||
test3200 test3201 test3202 test3203 test3204 test3205 test3207 test3208 \
|
||||
test3209 test3210 test3211 test3212 test3213
|
||||
test3209 test3210 test3211 test3212 test3213 \
|
||||
\
|
||||
test4000 test4001
|
||||
|
||||
EXTRA_DIST = $(TESTCASES) DISABLED
|
||||
|
|
|
|||
51
tests/data/test4000
Normal file
51
tests/data/test4000
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
ECH GREASE
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 7
|
||||
|
||||
MooMoo
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
ECH
|
||||
</features>
|
||||
<server>
|
||||
https
|
||||
</server>
|
||||
<name>
|
||||
HTTPS GET with ECH GREASE
|
||||
</name>
|
||||
# Using '-k' over '--insecure' to also test the short form
|
||||
# Add ECH grease
|
||||
<command>
|
||||
--ech grease -k https://%HOSTIP:%HTTPSPORT/%TESTNUMBER
|
||||
</command>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol>
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPSPORT
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
|
||||
</protocol>
|
||||
</verify>
|
||||
</testcase>
|
||||
46
tests/data/test4001
Normal file
46
tests/data/test4001
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
ECH try real and fail
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
</reply>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
ECH
|
||||
</features>
|
||||
<server>
|
||||
https
|
||||
</server>
|
||||
<name>
|
||||
Make real ECH attempt and fail with "ech required" error (101)
|
||||
</name>
|
||||
# Using '-k' over '--insecure' to also test the short form
|
||||
<command>
|
||||
--ech ecl:AEv+DQBHdAAgACCCU49qdxKOUXJPs3wlsM06v/t42sMH5xQOL37MAd3HaAAEAAEAAQAYb3RoZXJwdWJsaWMudGVzdC5kZWZvLmllAAA= -k https://%HOSTIP:%HTTPSPORT/%TESTNUMBER
|
||||
</command>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<errorcode>
|
||||
%if !wolfssl
|
||||
%if !rustls
|
||||
101
|
||||
%else
|
||||
35
|
||||
%endif
|
||||
%else
|
||||
35
|
||||
%endif
|
||||
</errorcode>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue