113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciHTTP
513498266Sopenharmony_ciHTTP GET
613498266Sopenharmony_cifollowlocation
713498266Sopenharmony_ci--max-redirs
813498266Sopenharmony_ci</keywords>
913498266Sopenharmony_ci</info>
1013498266Sopenharmony_ci# Server-side
1113498266Sopenharmony_ci<reply>
1213498266Sopenharmony_ci<data>
1313498266Sopenharmony_ciHTTP/1.1 301 This is a weirdo text message
1413498266Sopenharmony_ciServer: test-server/fake
1513498266Sopenharmony_ciLocation: data/reply/%TESTNUMBER
1613498266Sopenharmony_ciContent-Length: 32
1713498266Sopenharmony_ciConnection: close
1813498266Sopenharmony_ci
1913498266Sopenharmony_ciRedirect to the same URL again!
2013498266Sopenharmony_ci</data>
2113498266Sopenharmony_ci<datacheck>
2213498266Sopenharmony_ciHTTP/1.1 301 This is a weirdo text message
2313498266Sopenharmony_ciServer: test-server/fake
2413498266Sopenharmony_ciLocation: data/reply/%TESTNUMBER
2513498266Sopenharmony_ciContent-Length: 32
2613498266Sopenharmony_ciConnection: close
2713498266Sopenharmony_ci
2813498266Sopenharmony_ciHTTP/1.1 301 This is a weirdo text message
2913498266Sopenharmony_ciServer: test-server/fake
3013498266Sopenharmony_ciLocation: data/reply/%TESTNUMBER
3113498266Sopenharmony_ciContent-Length: 32
3213498266Sopenharmony_ciConnection: close
3313498266Sopenharmony_ci
3413498266Sopenharmony_ciHTTP/1.1 301 This is a weirdo text message
3513498266Sopenharmony_ciServer: test-server/fake
3613498266Sopenharmony_ciLocation: data/reply/%TESTNUMBER
3713498266Sopenharmony_ciContent-Length: 32
3813498266Sopenharmony_ciConnection: close
3913498266Sopenharmony_ci
4013498266Sopenharmony_ciHTTP/1.1 301 This is a weirdo text message
4113498266Sopenharmony_ciServer: test-server/fake
4213498266Sopenharmony_ciLocation: data/reply/%TESTNUMBER
4313498266Sopenharmony_ciContent-Length: 32
4413498266Sopenharmony_ciConnection: close
4513498266Sopenharmony_ci
4613498266Sopenharmony_ciHTTP/1.1 301 This is a weirdo text message
4713498266Sopenharmony_ciServer: test-server/fake
4813498266Sopenharmony_ciLocation: data/reply/%TESTNUMBER
4913498266Sopenharmony_ciContent-Length: 32
5013498266Sopenharmony_ciConnection: close
5113498266Sopenharmony_ci
5213498266Sopenharmony_ciHTTP/1.1 301 This is a weirdo text message
5313498266Sopenharmony_ciServer: test-server/fake
5413498266Sopenharmony_ciLocation: data/reply/%TESTNUMBER
5513498266Sopenharmony_ciContent-Length: 32
5613498266Sopenharmony_ciConnection: close
5713498266Sopenharmony_ci
5813498266Sopenharmony_ci</datacheck>
5913498266Sopenharmony_ci</reply>
6013498266Sopenharmony_ci
6113498266Sopenharmony_ci# Client-side
6213498266Sopenharmony_ci<client>
6313498266Sopenharmony_ci<server>
6413498266Sopenharmony_cihttp
6513498266Sopenharmony_ci</server>
6613498266Sopenharmony_ci<name>
6713498266Sopenharmony_cilooping HTTP Location: following with --max-redirs
6813498266Sopenharmony_ci</name>
6913498266Sopenharmony_ci<command>
7013498266Sopenharmony_cihttp://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -L --max-redirs 5
7113498266Sopenharmony_ci</command>
7213498266Sopenharmony_ci</client>
7313498266Sopenharmony_ci
7413498266Sopenharmony_ci# Verify data after the test has been "shot"
7513498266Sopenharmony_ci<verify>
7613498266Sopenharmony_ci<protocol>
7713498266Sopenharmony_ciGET /want/%TESTNUMBER HTTP/1.1
7813498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
7913498266Sopenharmony_ciUser-Agent: curl/%VERSION
8013498266Sopenharmony_ciAccept: */*
8113498266Sopenharmony_ci
8213498266Sopenharmony_ciGET /want/data/reply/%TESTNUMBER HTTP/1.1
8313498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
8413498266Sopenharmony_ciUser-Agent: curl/%VERSION
8513498266Sopenharmony_ciAccept: */*
8613498266Sopenharmony_ci
8713498266Sopenharmony_ciGET /want/data/reply/data/reply/%TESTNUMBER HTTP/1.1
8813498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
8913498266Sopenharmony_ciUser-Agent: curl/%VERSION
9013498266Sopenharmony_ciAccept: */*
9113498266Sopenharmony_ci
9213498266Sopenharmony_ciGET /want/data/reply/data/reply/data/reply/%TESTNUMBER HTTP/1.1
9313498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
9413498266Sopenharmony_ciUser-Agent: curl/%VERSION
9513498266Sopenharmony_ciAccept: */*
9613498266Sopenharmony_ci
9713498266Sopenharmony_ciGET /want/data/reply/data/reply/data/reply/data/reply/%TESTNUMBER HTTP/1.1
9813498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
9913498266Sopenharmony_ciUser-Agent: curl/%VERSION
10013498266Sopenharmony_ciAccept: */*
10113498266Sopenharmony_ci
10213498266Sopenharmony_ciGET /want/data/reply/data/reply/data/reply/data/reply/data/reply/%TESTNUMBER HTTP/1.1
10313498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
10413498266Sopenharmony_ciUser-Agent: curl/%VERSION
10513498266Sopenharmony_ciAccept: */*
10613498266Sopenharmony_ci
10713498266Sopenharmony_ci</protocol>
10813498266Sopenharmony_ci
10913498266Sopenharmony_ci<errorcode>
11013498266Sopenharmony_ci47
11113498266Sopenharmony_ci</errorcode>
11213498266Sopenharmony_ci</verify>
11313498266Sopenharmony_ci</testcase>
114