mirror of
https://github.com/curl/curl.git
synced 2026-04-14 13:01:42 +08:00
There are 58 non-compliant files. Mark them with the `notxml` keyword. Also include the compliant ones in the GHA/checksrc xmllint CI job. Also: - delete XML prolog from the 3 test data files that had them. - FILEFORMAT.md: document the `notxml` keyword. - FILEFORMAT.md: fix a typo. Follow-up tode49cc89ab#19470 Follow-up tof3095f0dbd#19528 Follow-up to87ba80a6dfCloses #19595
84 lines
1.4 KiB
Plaintext
84 lines
1.4 KiB
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP proxy
|
|
HSTS
|
|
trailing-dot
|
|
</keywords>
|
|
</info>
|
|
|
|
<reply>
|
|
|
|
# we use this as response to a CONNECT
|
|
<connect crlf="headers" nocheck="yes">
|
|
HTTP/1.1 200 OK
|
|
|
|
</connect>
|
|
<data crlf="headers">
|
|
HTTP/1.1 200 OK
|
|
Content-Length: 6
|
|
Strict-Transport-Security: max-age=604800
|
|
|
|
-foo-
|
|
</data>
|
|
<data2 crlf="headers">
|
|
HTTP/1.1 200 OK
|
|
Content-Length: 6
|
|
Strict-Transport-Security: max-age=6048000
|
|
|
|
-baa-
|
|
</data2>
|
|
</reply>
|
|
|
|
<client>
|
|
<server>
|
|
https
|
|
http-proxy
|
|
</server>
|
|
<features>
|
|
HSTS
|
|
proxy
|
|
https
|
|
Debug
|
|
</features>
|
|
<setenv>
|
|
CURL_HSTS_HTTP=yes
|
|
CURL_TIME=2000000000
|
|
</setenv>
|
|
|
|
<name>
|
|
HSTS with two URLs
|
|
</name>
|
|
<command>
|
|
-x http://%HOSTIP:%PROXYPORT --hsts %LOGDIR/hsts%TESTNUMBER http://this.hsts.example./%TESTNUMBER http://another.example.com/%TESTNUMBER0002
|
|
</command>
|
|
</client>
|
|
|
|
<verify>
|
|
# we let it CONNECT to the server to confirm HSTS but deny from there
|
|
<proxy crlf="headers">
|
|
GET http://this.hsts.example./%TESTNUMBER HTTP/1.1
|
|
Host: this.hsts.example.
|
|
User-Agent: curl/%VERSION
|
|
Accept: */*
|
|
Proxy-Connection: Keep-Alive
|
|
|
|
GET http://another.example.com/%TESTNUMBER0002 HTTP/1.1
|
|
Host: another.example.com
|
|
User-Agent: curl/%VERSION
|
|
Accept: */*
|
|
Proxy-Connection: Keep-Alive
|
|
|
|
</proxy>
|
|
|
|
<file name="%LOGDIR/hsts%TESTNUMBER" mode="text">
|
|
# Your HSTS cache. https://curl.se/docs/hsts.html
|
|
# This file was generated by libcurl! Edit at your own risk.
|
|
this.hsts.example "20330525 03:33:20"
|
|
another.example.com "20330727 03:33:20"
|
|
</file>
|
|
|
|
</verify>
|
|
</testcase>
|