title: How to convert curl command to java
body: <p>I have the following curl command which gives a JSON response:</p>
  
  <pre><code>curl --globoff --insecure --silent -u username:password -X GET -H 'Content-Type: application/json' "http://ficcjira.xyz.com/rest/api/2/search?jql=project=ABC&amp;fields=Timetracking"
  </code></pre>
  
  <p>I want to replicate this in Java. Could anyone tell me how to do that?</p>