Curl GET Request

An example of making a GET request with Curl. The '-H "Accept: application/json"' Curl command-line parameter appends 'Accept: application/json' request header and informs the server that Curl client expects a JSON. The 'Content-Type: application/json' response header informs the Curl client that the server returned a JSON string.
Loading...