Perform a get request and pass on response instead of redirecting when logging in.
Set content type of response.