HsacExamples.SlimTests.HttpTests.HttpGetFollowRedirectTest


variable defined: REDIRECT_URL=http://www.hotmail.com

First we do a 'normal' GET to http://www.hotmail.com, which will redirect us.

script http test
get from http://www.hotmail.com
check response status 200
show response headers
Cache-Control private
Content-Length 36433
Content-Type text/html; charset=utf-8
Set-Cookie [RoutingKeyCookie=; expires=Fri, 16-Mar-1990 08:31:16 GMT; path=/; secure, HostSwitchPrg=; expires=Fri, 16-Mar-1990 08:31:16 GMT; path=/; secure, OptInPrg=; expires=Fri, 16-Mar-1990 08:31:16 GMT; path=/; secure, logonLatency=LGN01=637199442769531397; domain=live.com; path=/; secure; HttpOnly, O365Consumer=; expires=Fri, 16-Mar-1990 08:31:16 GMT; path=/; secure]
request-id 7440609f-9a58-443c-afe6-cbf7020bd9f7
X-CalculatedFETarget DM6PR17CU001.internal.outlook.com
X-BackEndHttpStatus [200, 200]
X-FEProxyInfo DM6PR17CA0004.NAMPRD17.PROD.OUTLOOK.COM
X-CalculatedBETarget DM5PR03MB3034.namprd03.prod.outlook.com
X-RUM-Validated 1
X-Content-Type-Options nosniff
X-BeSku Gen9
X-BackEnd-Begin 2020-03-16T08:31:16.951
X-BackEnd-End 2020-03-16T08:31:16.961
X-DiagInfo DM5PR03MB3034
X-BEServer DM5PR03MB3034
X-UA-Compatible IE=EmulateIE7
Strict-Transport-Security [max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains]
X-Proxy-RoutingCorrectness 1
X-Proxy-BackendServerStatus 200
X-FEServer [DM6PR17CA0004, CH2PR03CA0024]
X-MSEdge-Ref Ref A: 5DEF9ED2202142648F258545412B5D4F Ref B: CHGEDGE1319 Ref C: 2020-03-16T08:31:16Z
Date Mon, 16 Mar 2020 08:31:16 GMT

Then we do the same call without following the redirect, allowing us to inspect that a redirect is sent and what the redirect location is.

script http test
get from http://www.hotmail.com no redirect
check response status 301
check response header Location https://outlook.live.com/owa/
show response