Return to test1270 CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data |
1.1 ! misho 1: <testcase> ! 2: <info> ! 3: <keywords> ! 4: HTTP ! 5: HTTP GET ! 6: redirect_url ! 7: followlocation ! 8: --write-out ! 9: </keywords> ! 10: </info> ! 11: ! 12: # Server-side ! 13: <reply> ! 14: <data nocheck="yes"> ! 15: HTTP/1.1 302 Captive Portal ! 16: Server: ohlala/2000 ! 17: Date: Tue, 17 Dec 2019 13:08:30 GMT ! 18: Cache-Control: no-cache,no-store,must-revalidate,post-check=0,pre-check=0 ! 19: Location: https://moo.moo.moo ! 20: Content-Type: text/html; charset=utf-8 ! 21: X-Frame-Options: SAMEORIGIN ! 22: Strict-Transport-Security: max-age=604800 ! 23: Content-Length: 0 ! 24: Connection: close ! 25: ! 26: </data> ! 27: </reply> ! 28: ! 29: # Client-side ! 30: <client> ! 31: <server> ! 32: http ! 33: </server> ! 34: <name> ! 35: Basic 'redirect_url' ! 36: </name> ! 37: <command> ! 38: http://%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: <strip> ! 45: ^User-Agent:.* ! 46: </strip> ! 47: <protocol> ! 48: GET /we/want/our/1270 HTTP/1.1 ! 49: Host: %HOSTIP:%HTTPPORT ! 50: Accept: */* ! 51: ! 52: </protocol> ! 53: ! 54: <stdout> ! 55: HTTP/1.1 302 Captive Portal ! 56: Server: ohlala/2000 ! 57: Date: Tue, 17 Dec 2019 13:08:30 GMT ! 58: Cache-Control: no-cache,no-store,must-revalidate,post-check=0,pre-check=0 ! 59: Location: https://moo.moo.moo ! 60: Content-Type: text/html; charset=utf-8 ! 61: X-Frame-Options: SAMEORIGIN ! 62: Strict-Transport-Security: max-age=604800 ! 63: Content-Length: 0 ! 64: Connection: close ! 65: ! 66: https://moo.moo.moo/ ! 67: </stdout> ! 68: </verify> ! 69: </testcase>