Is there a python equivalent for checking if a host accepts the trace method?
curl -sIX TRACE neopets.com
Note, I'm not trying to get a request traceback, I'm also not trying to get my raw request. I'm trying to verify if a webserver supports the TRACE method.
https://curl.trillworks.com/ translates the command to:
requests.head('http://neopets.com')
but it doesn't seem to get me the same result as the curl.
EDIT: I guess I have to construct the request
req = requests.Request('TRACE', 'https://google.com')
r = req.prepare()
s = requests.Session()
s.send(r)