1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-14 05:25:06 -05:00
curl/tests/data/test493
Daniel Stenberg e2b4df7b5e
tests: use %TESTNUMBER instead of fixed number
This makes the tests easier to copy and relocate to other test numbers
without having to update content.

Closes #6738
2021-03-19 15:57:21 +01:00

62 lines
1011 B
Plaintext

<testcase>
<info>
<keywords>
HSTS
url_effective
</keywords>
</info>
<reply>
# we use this as response to a CONNECT
<data nocheck="yes">
HTTP/1.1 403 not OK at all
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 6
Connection: close
Funny-head: yesyes
-foo-
</data>
</reply>
<client>
<server>
http
</server>
<features>
HSTS
</features>
<file name="log/input%TESTNUMBER">
.hsts.example "20311001 04:47:41"
</file>
<name>
HSTS and %{url_effective} after upgrade
</name>
<command>
-x http://%HOSTIP:%HTTPPORT http://this.hsts.example/%TESTNUMBER --hsts log/input%TESTNUMBER -w '%{url_effective}\n'
</command>
</client>
<verify>
# we let it CONNECT to the server to confirm HSTS but deny from there
<protocol>
CONNECT this.hsts.example:443 HTTP/1.1
Host: this.hsts.example:443
User-Agent: curl/%VERSION
Proxy-Connection: Keep-Alive
</protocol>
<stdout>
https://this.hsts.example/%TESTNUMBER
</stdout>
# Proxy CONNECT aborted
<errorcode>
56
</errorcode>
</verify>
</testcase>