브라우저에서는 정상적으로 redirect url 에 https://automessage.com/authentication?code={인가 code 값}을 확인할 수 있는데
shell command로 get 요청을 하였을때, header 값의 Location에 아래와 같은 값이 확인이 안됩니다.
[python request 요청]
r= s.get(self.login_url,allow_redirects=False)
print(r.headers['location])
-> 원하는 header의 location 값.
https://automessage.com/authentication?code={인가 code 값}
shell에서는 redirect된 url로 발송되는 code 값을 request header 를 통해 확인이 불가능한가요?
혹시 파싱하는방법이 있다면, 어떻게 파싱을 해야하는지 자문을 구합니다.