How to add the following curl request into a url format?
HttpGet httpGetRequest = new HttpGet("curl -XGET 'localhost:9200/indexname/status/_search?pretty=1&size=10000' -d '{"_source": {"include": [ "ID", "Name" ]}}''"};
It's throwing error now as its not a proper http url format. Any advice? Thanks.