-1

How do I make a HTTP HEAD request using the requests library?

Malekai
  • 4,765
  • 5
  • 25
  • 60
  • Possible duplicate of [Getting HEAD content with Python Requests](https://stackoverflow.com/questions/9554947/getting-head-content-with-python-requests) – buran Jun 04 '19 at 17:57
  • @buran No, it's not because I don't want to get the content, I only want the header data. – Malekai Jun 04 '19 at 17:58

1 Answers1

1

You use the head() function:

r = requests.head(INSERT_URL_HERE)
jwodder
  • 54,758
  • 12
  • 108
  • 124