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

Time:09-09

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

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

CodePudding user response:

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.

  • Related