I am trying to see how many bytes were sent out to the server when making an HTTP request.
import requests
resp = requests.get("http://www.example.com")
print(resp.request)
>>> <PreparedRequest [GET]>
How can I get the number of bytes contained in <PreparedRequest [GET]>
including any attached files, payloads, etc.