import requests headers = {'Content-type': 'content_type_value'} r = requests.get(url, headers=headers)