title: Python requests view before sending
body: <p>Can somebody please provide me with a way to see a request that I have generated before sending it to a server, here is the code:</p>
  
  <pre><code>import requests
  import urllib2
  import logging
  
  from requests.packages.urllib3.exceptions import InsecureRequestWarning
  requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
  
  url = "https://10.1.1.254:4081/admin/api/jsonrpc/"
  session = requests.Session()
  
  data = {
      "jsonrpc": "2.0", "id": 1, "method": "Session.login",
      "params": {"userName": "test", "password":"test123"}
  }
  r = session.post(url, json=data, verify=False)
  
  data = {"jsonrpc": "2.0", "id":3, "method":"Session.logout"}
  r = session.post(url, json=data, verify=False)
  </code></pre>
  
  <p>So what I would like is to get that request sent with session.post, before Python sends it.</p>