Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python requests header

url = 'https://api.github.com/some/endpoint'
headers = {'user-agent': 'my-app/0.0.1'}
r = requests.get(url, headers=headers)
Source by requests.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #python #requests #header
ADD COMMENT
Topic
Name
2+2 =