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