Fix Python – How can I see the entire HTTP request that’s being sent by my Python application?

In my case, I’m using the requests library to call PayPal’s API over HTTPS. Unfortunately, I’m getting an error from PayPal, and PayPal support cannot figure out what the error is or what’s causing it. They want me to “Please provide the entire request, headers included”.
How can I do that?
….

Fix Python – How do I disable the security certificate check in Python requests

I am using
import requests
requests.post(url=’https://foo.example’, data={‘bar’:’baz’})

but I get a request.exceptions.SSLError.
The website has an expired certficate, but I am not sending sensitive data, so it doesn’t matter to me.
I would imagine there is an argument like ‘verifiy=False’ that I could use, but I can’t seem to find it.
….