python-requests Getting started with python-requests Other request methods


Example

The requests module has top-level functions for most HTTP methods:

r = requests.put('https://example.com/', data=put_body)
r = requests.delete('https://example.com/')
r = requests.head('https://example.com/')
r = requests.options('https://example.com/')
r = requests.patch('https://example.com/', data=patch_update)