Wazaterm » Linux Commands » curl

How to GET JSON with basic authentication using curl

$ curl --basic -u $username:$password https://api.example.com/api/sample.json -H "accept: application/json"

Related Commands