I want to call REST API for GET request in Java. I want to send some query parameters with the request. How to do it? The format of the curl command which I want to request is:
curl -G -X GET -H "Accept:application/rdf+xml" --data-urlencode text="Sachin Plays cricket" http://wit.istc.cnr.it/stlab/fred