Postman [GET: url] Request Returning 200 OK; Python 'requests.get(url)' returning 403 Forbidden

Hello,

When running a Postman GET Request on website https://reatapharma.com/about-us/our-story/ using no authentication, I get a full HTML payload. However, when using Python’s requests or http.client, I get a 403 forbidden status code, even though I didn’t use any authentication on Postman. Is there any reason for this discrepancy?

Try specifying a user-agent in your headers

'user-agent': "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"