xref: /aosp_15_r20/external/curl/tests/data/test1270 (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 GET
6*6236dae4SAndroid Build Coastguard Workerredirect_url
7*6236dae4SAndroid Build Coastguard Workerfollowlocation
8*6236dae4SAndroid Build Coastguard Worker--write-out
9*6236dae4SAndroid Build Coastguard Worker</keywords>
10*6236dae4SAndroid Build Coastguard Worker</info>
11*6236dae4SAndroid Build Coastguard Worker
12*6236dae4SAndroid Build Coastguard Worker# Server-side
13*6236dae4SAndroid Build Coastguard Worker<reply>
14*6236dae4SAndroid Build Coastguard Worker<data nocheck="yes">
15*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 302 Captive Portal
16*6236dae4SAndroid Build Coastguard WorkerServer: ohlala/2000
17*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 17 Dec 2019 13:08:30 GMT
18*6236dae4SAndroid Build Coastguard WorkerCache-Control: no-cache,no-store,must-revalidate,post-check=0,pre-check=0
19*6236dae4SAndroid Build Coastguard WorkerLocation: https://moo.moo.moo
20*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=utf-8
21*6236dae4SAndroid Build Coastguard WorkerX-Frame-Options: SAMEORIGIN
22*6236dae4SAndroid Build Coastguard WorkerStrict-Transport-Security: max-age=604800
23*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0
24*6236dae4SAndroid Build Coastguard WorkerConnection: close
25*6236dae4SAndroid Build Coastguard Worker
26*6236dae4SAndroid Build Coastguard Worker</data>
27*6236dae4SAndroid Build Coastguard Worker</reply>
28*6236dae4SAndroid Build Coastguard Worker
29*6236dae4SAndroid Build Coastguard Worker# Client-side
30*6236dae4SAndroid Build Coastguard Worker<client>
31*6236dae4SAndroid Build Coastguard Worker<server>
32*6236dae4SAndroid Build Coastguard Workerhttp
33*6236dae4SAndroid Build Coastguard Worker</server>
34*6236dae4SAndroid Build Coastguard Worker<name>
35*6236dae4SAndroid Build Coastguard WorkerBasic 'redirect_url'
36*6236dae4SAndroid Build Coastguard Worker</name>
37*6236dae4SAndroid Build Coastguard Worker<command>
38*6236dae4SAndroid Build Coastguard Workerhttp://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER -w '%{redirect_url}\n' -s
39*6236dae4SAndroid Build Coastguard Worker</command>
40*6236dae4SAndroid Build Coastguard Worker</client>
41*6236dae4SAndroid Build Coastguard Worker
42*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
43*6236dae4SAndroid Build Coastguard Worker<verify>
44*6236dae4SAndroid Build Coastguard Worker<protocol>
45*6236dae4SAndroid Build Coastguard WorkerGET /we/want/our/%TESTNUMBER HTTP/1.1
46*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT
47*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
48*6236dae4SAndroid Build Coastguard WorkerAccept: */*
49*6236dae4SAndroid Build Coastguard Worker
50*6236dae4SAndroid Build Coastguard Worker</protocol>
51*6236dae4SAndroid Build Coastguard Worker
52*6236dae4SAndroid Build Coastguard Worker<stdout>
53*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 302 Captive Portal
54*6236dae4SAndroid Build Coastguard WorkerServer: ohlala/2000
55*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 17 Dec 2019 13:08:30 GMT
56*6236dae4SAndroid Build Coastguard WorkerCache-Control: no-cache,no-store,must-revalidate,post-check=0,pre-check=0
57*6236dae4SAndroid Build Coastguard WorkerLocation: https://moo.moo.moo
58*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=utf-8
59*6236dae4SAndroid Build Coastguard WorkerX-Frame-Options: SAMEORIGIN
60*6236dae4SAndroid Build Coastguard WorkerStrict-Transport-Security: max-age=604800
61*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0
62*6236dae4SAndroid Build Coastguard WorkerConnection: close
63*6236dae4SAndroid Build Coastguard Worker
64*6236dae4SAndroid Build Coastguard Workerhttps://moo.moo.moo/
65*6236dae4SAndroid Build Coastguard Worker</stdout>
66*6236dae4SAndroid Build Coastguard Worker</verify>
67*6236dae4SAndroid Build Coastguard Worker</testcase>
68