I am trying to write a Python program that POSTs a build request to a Jenkins server over HTTPS. I have tried PycURL, which works well, but am now trying to replace that with standard library facilities. The revised program receives a 404 response from the server however, so I would like to inspect both versions of the program's actual POST requests to the server (with and without PycURL) to see what's different.
Which tool can I use to capture my program's POST requests and analyze them?
Use the program to dump the traffic tcpdump or WireShark
How do I debug HTTPS post requests from my commandline program?