title: Using curl command in java
body: <p>I have a curl command to use</p>
  
  <pre><code>curl -s -d user.name=xxxx \
         -d file=yyyy \
         -d arg=-v \
         'http://localhost:zzzz/templeton/v1/pig'
  </code></pre>
  
  <p>Can anybody tell equivalent java code for the above curl command.</p>
  
  <p>Thanks in advance</p>