xref: /curl/tests/data/test493 (revision cbafcec5)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP proxy
6HSTS
7url_effective
8</keywords>
9</info>
10
11<reply>
12
13# we use this as response to a CONNECT
14<connect nocheck="yes">
15HTTP/1.1 403 not OK at all
16Date: Tue, 09 Nov 2010 14:49:00 GMT
17Server: test-server/fake
18Content-Length: 6
19Connection: close
20Funny-head: yesyes
21
22-foo-
23</connect>
24</reply>
25
26<client>
27<server>
28http
29</server>
30<features>
31HSTS
32proxy
33https
34</features>
35
36<file name="%LOGDIR/input%TESTNUMBER">
37.hsts.example "99991001 04:47:41"
38</file>
39
40<name>
41HSTS and %{url_effective} after upgrade
42</name>
43<command>
44-x http://%HOSTIP:%HTTPPORT http://this.hsts.example/%TESTNUMBER --hsts %LOGDIR/input%TESTNUMBER -w '%{url_effective}\n'
45</command>
46<disable>
47test-duphandle
48</disable>
49</client>
50
51<verify>
52# we let it CONNECT to the server to confirm HSTS but deny from there
53<protocol>
54CONNECT this.hsts.example:443 HTTP/1.1
55Host: this.hsts.example:443
56User-Agent: curl/%VERSION
57Proxy-Connection: Keep-Alive
58
59</protocol>
60<stdout>
61HTTP/1.1 403 not OK at all
62Date: Tue, 09 Nov 2010 14:49:00 GMT
63Server: test-server/fake
64Content-Length: 6
65Connection: close
66Funny-head: yesyes
67
68https://this.hsts.example/%TESTNUMBER
69</stdout>
70# Proxy CONNECT aborted
71<errorcode>
7256
73</errorcode>
74</verify>
75</testcase>
76