python requests
使いやすい http request library
debugする時は、urllib3(多機能? http library) を logging.DEBUGにして、logを見るのが速いかも。
prepared_requestで、request オブジェクトもみられるけど、logをばっと出して見る方が速い。たぶん。
req.pyimport logging
logging.getLogger("urllib3").setLevel(logging.DEBUG)
r = request.post(...)
で、r.request を見ると、 PreparedRequest
GET となってる。
locustで、method not allowed (server)側で getと解釈されてる?
=> http -> httpsのredirectだった。
参考: