1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6redirect_url 7followlocation 8--write-out 9</keywords> 10</info> 11 12# Server-side 13<reply> 14<data nocheck="yes"> 15HTTP/1.1 302 Captive Portal 16Server: ohlala/2000 17Date: Tue, 17 Dec 2019 13:08:30 GMT 18Cache-Control: no-cache,no-store,must-revalidate,post-check=0,pre-check=0 19Location: https://moo.moo.moo 20Content-Type: text/html; charset=utf-8 21X-Frame-Options: SAMEORIGIN 22Strict-Transport-Security: max-age=604800 23Content-Length: 0 24Connection: close 25 26</data> 27</reply> 28 29# Client-side 30<client> 31<server> 32http 33</server> 34 <name> 35Basic 'redirect_url' 36 </name> 37 <command> 38http://%HOSTIP:%HTTPPORT/we/want/our/1270 -w '%{redirect_url}\n' -s 39</command> 40</client> 41 42# Verify data after the test has been "shot" 43<verify> 44<protocol> 45GET /we/want/our/1270 HTTP/1.1 46Host: %HOSTIP:%HTTPPORT 47User-Agent: curl/%VERSION 48Accept: */* 49 50</protocol> 51 52<stdout> 53HTTP/1.1 302 Captive Portal 54Server: ohlala/2000 55Date: Tue, 17 Dec 2019 13:08:30 GMT 56Cache-Control: no-cache,no-store,must-revalidate,post-check=0,pre-check=0 57Location: https://moo.moo.moo 58Content-Type: text/html; charset=utf-8 59X-Frame-Options: SAMEORIGIN 60Strict-Transport-Security: max-age=604800 61Content-Length: 0 62Connection: close 63 64https://moo.moo.moo/ 65</stdout> 66</verify> 67</testcase> 68