title: How to handle special characters in python requests post request
body: <p>I'm trying to send an HTTP POST request using the python <code>requests</code> package.</p>
  <p>The working curl command looks like the following (captured from chrome dev tools network tab, right clicked on someFile.php, and chose &quot;copy as cURL&quot;). When run in a terminal, it outputs a valid, nonempty, response.</p>
  <pre><code>curl 'https://somedomain.com/someFile.php' \
    --data-raw $'abc=ZXC%20*%20QWE%20***%20BNM%20((someThing%20%3D%200))%20AND%20anotherThing%20%3E%3D%20\'2020-5-9\'%20IOP%20&amp;someparam=1&amp;myhash=a5d96895cab824fbd9bb85627a8f909d'
  </code></pre>
  <p>I attempted to replicate the POST request in python with:</p>
  <pre><code>import requests
  url = 'https://somedomain.com/someFile.php'
  out = requests.post(url,data=r'abc=ZXC%20*%20QWE%20***%20BNM%20((someThing%20%3D%200))%20AND%20anotherThing%20%3E%3D%20\'2020-5-9\'%20IOP%20&amp;someparam=1&amp;myhash=a5d96895cab824fbd9bb85627a8f909d')
  print(out.text)
  </code></pre>
  <p>... but this just prints an empty string.</p>
  <p>How do I handle this curl command in python?</p>