title: Send POST request using API python
body: <p>I am executing below post request and getting error "Premature end of file"</p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.by import By
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.support.ui import Select
  from selenium.common.exceptions import NoSuchElementException
  import os, unittest, time, re, random, datetime
  import requests
  
  
  class Sauce(unittest.TestCase):
  
  def test_create_contract(self):
      payload = {'PO_ID': '3557698',' MAN': 'HQF01'}
      r = requests.post(
          "https://time.tps.com/xml/Msg.jsp?msg=MSG_RAM_INFO&amp;user=Dist1&amp;pass=ome1")
      print r
  print r.text
  
  
  if __name__ == "__main__":
      unittest.main()
  </code></pre>
  
  <p>Where as when I tried with soap client using XML file its working fine
  My XML file is </p>
  
  <pre><code>&lt;SO&gt;
    &lt;PO_ID&gt;3557698&lt;/PO_ID&gt;
    &lt;MAN&gt;HQF01&lt;/MAN&gt;
  &lt;/SO&gt;
  </code></pre>
  
  <p>I need to send a post request and need to get response.</p>