title: Incoding curl request into Java String
body: <p>I am trying to execute curl request through command using Java. </p>
  
  <p>To accomplish this thing I am using <strong>Runtime.getRuntime().exec(command);</strong> </p>
  
  <p>But the problem I am facing is to incode curl request into String.</p>
  
  <p><strong>Curl command</strong></p>
  
  <pre><code>  curl --data "name=hell&amp;&amp;email=check@gmail.com&amp;&amp;phone=9845123134" http://www.example.com
  </code></pre>
  
  <p><strong>Want to convert into Java String</strong></p>
  
  <p>How would I do it?</p>