I am newbie to servlet. I am trying to call zomato API. I can call it using PHP - cURL. Now, I want to call it using servlet.
curl -X GET --header "Accept: application/json" --header "user-key: alksakdksldjalkdalak" "https://developers.zomato.com/api/v2.1/locations?query=vadodara"
Can someone tell me how to call this in servlet? Any help appreciated. Thanks in advance!!