response = requests.get('http://httpbin.org/redirect/1', allow_redirects=False)
response.status_code
response.headers['location']
Python Requests - Is it possible to receive a partial response after an HTTP POST?