pythonpython-3.xpython-requestshttp-head

How do I make a HTTP HEAD request using requests?


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


Solution

  • You use the head() function:

    r = requests.head(INSERT_URL_HERE)