title: HTTP POST using CURL in Linux
body: <p>Help needed on finding corresponding curl command syntax corresponding to below java code which works.</p>
  
  <p>Working Java Code></p>
  
  <pre><code>    HttpPost httppost = new HttpPost("/SEMP");
      httppost.addHeader("Authorization", "Basic U1ZDLlNPTFJPRTE6anVXMmFfdVc=");
  
      StringEntity stringEntity = new StringEntity("&lt;rpc&gt;command&lt;/rcp&gt;", "UTF-8"); stringEntity.setContentType("text/xml");
      httppost.setEntity((HttpEntity)stringEntity);
  
      CloseableHttpResponse response = httpclient.execute(targetHost, (HttpRequest)httppost, localcontext);
  </code></pre>
  
  <p>Corresponding Curl Syntax needed?
  Please help on corresponding syntax for curl</p>
  
  <p>Thanks in advance.</p>