title: HTTP Post request using Python 3
body: <p>So I'm trying to send a HTTP post request</p>
  
  <pre><code>&gt;import requests
  &gt;
  &gt;data = {'cui':   '1234', 'data': '2015-02-14'}
  &gt;
  &gt;r = requests.post("https://webservicesp.anaf.ro/PlatitorTvaRest/api/v3/ws/tva", json={"cui":   '1234', "data": '2015-02-14'})
  &gt;
  &gt;print(r.status_code)
  </code></pre>
  
  <p>But I keep getting error code 500
  The request works when using 3rd parties.</p>
  
  <p>Request is sent to the link: "<a href="https://webservicesp.anaf.ro/PlatitorTvaRest/api/v3/ws/tva" rel="nofollow noreferrer">https://webservicesp.anaf.ro/PlatitorTvaRest/api/v3/ws/tva</a>" </p>
  
  <p>Header:Content-Type: application/json</p>
  
  <p>Post Body is given:</p>
  
  <p>Post Body: </p>
  
  <pre><code>[
      {           
         "cui": _Number_, "data":"_Date_"         
      },          
      {               
         "cui": _Number_, "data":"_Date_" 
      }       
  ]
  </code></pre>
  
  <p>Request example and response:
  <a href="https://static.anaf.ro/static/10/Anaf/Informatii_R/documentatie_SW_01112017.txt" rel="nofollow noreferrer">https://static.anaf.ro/static/10/Anaf/Informatii_R/documentatie_SW_01112017.txt</a></p>