pythonhttp-head

What does 'requests.head()' do in python requests?


import requests
send = requests.head('https://httpbin.org')
print(send.text)

What does 'requests.head()' do ? i get empty responses


Solution

  • A head request is a request used when you do not actually need the page content - just the status-code of your connection with the site or http-headers.