xref: /curl/tests/data/test441 (revision e7a021e1)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP proxy
6HSTS
7trailing-dot
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# no trailing dot in the file only in the URL
37<file name="%LOGDIR/input%TESTNUMBER">
38this.hsts.example. "99991001 04:47:41"
39</file>
40
41<name>
42HSTS with no t-dot host name in URL but t-dot in file
43</name>
44<command>
45-x http://%HOSTIP:%HTTPPORT http://this.hsts.example/%TESTNUMBER --hsts %LOGDIR/input%TESTNUMBER -w '%{url_effective}\n'
46</command>
47</client>
48
49<verify>
50# we let it CONNECT to the server to confirm HSTS but deny from there
51<protocol>
52CONNECT this.hsts.example:443 HTTP/1.1
53Host: this.hsts.example:443
54User-Agent: curl/%VERSION
55Proxy-Connection: Keep-Alive
56
57</protocol>
58<stdout>
59HTTP/1.1 403 not OK at all
60Date: Tue, 09 Nov 2010 14:49:00 GMT
61Server: test-server/fake
62Content-Length: 6
63Connection: close
64Funny-head: yesyes
65
66https://this.hsts.example/%TESTNUMBER
67</stdout>
68# Proxy CONNECT aborted
69<errorcode>
7056
71</errorcode>
72</verify>
73</testcase>
74