Closed paulusbrand closed 5 months ago
This is expected. The request method means you want to explicitly do things differently so you don't get the per-method behaviors otherwise defined
@sigmavirus24 thanks! The reason i have to use requests.request
is because there are no methods to perform TRACE and CONNECT http requests. For instance fir a GET request there is requests.get
. For PUT there is requests.put
. No such method exists for CONNECT and TRACE. Is this also intentional?
Yes. These have all been discussed at I've point it another in various issues that are all closed
A HEAD request can be performed in two ways. Using the
requests.head
method or therequests.request
method. But both have different default values for "allow_redirects".Expected Result
Both ways of performing HEAD requests have the same default behavior.
Actual Result
requests.head(url)
has allow_redirects disabled by default.requests.request("HEAD", url)
has allow_redirects enabled by default.Reproduction Steps
System Information