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

Question:

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

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

Asked By: Mr.spook

||

Answers:

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.

Answered By: user1092979
Categories: questions Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.