title: post a file using curl - multipart/form-data
body: <p>I am trying to post an xml file (utf-16 encoded) using curl to a REST service. The REST service is expecting 'multipart/form-data' content type.</p>
  
  <p>Curl Script:
  curl -k -i -H "Content-Type=multipart/form-data" -F "filename=@file.xml;type=text/xml" -X POST -u : </p>
  
  <p>However, i am getting 500 Internal Server error while running the script. </p>
  
  <p>Response:
  &lt;= Recv header, 23 bytes (0x17)
  0000: HTTP/1.1 100 Continue
  &lt;= Recv header, 36 bytes (0x24)
  0000: HTTP/1.1 500 Internal Server Error</p>
  
  <p>Through chrome's add on 'postman app' i am able to successfully post the xml to the REST service.</p>
  
  <p>Unable to figure out the issue causing the 500 error. Kindly help me in resolving this issue.</p>
  
  <p>Regards
  Anooja</p>