summaryrefslogtreecommitdiff
path: root/tests/data/test2088
blob: 569ac02f0f69b90362720cbca6e4fe18cd57962d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<testcase>
<info>
<keywords>
HSTS
HTTPS
</keywords>
</info>

# Client-side
<client>
<features>
HSTS
debug
</features>
<server>
https
http-proxy
</server>
<name>
Check that HSTS upgrades http to https
</name>
<setenv>
CURL_HSTSFILE=data/hsts.dafsa
</setenv>
<command>
-x %HOSTIP:%PROXYPORT http://hstsdomain.fake/
</command>
</client>

# Verify data after the test has been "shot"
<verify>
<strip>
^User-Agent:.*
</strip>
<proxy>
CONNECT hstsdomain.fake:443 HTTP/1.1
Host: hstsdomain.fake:443
Proxy-Connection: Keep-Alive

</proxy>
<errorcode>
56
</errorcode>
</verify>
</testcase>