Problem
Your REST API call returns a 301 error message that may include some or all of this information:
bash
$curl -X GET 'http://api.newrelic.com/v2/applications/1234567890.json' \> -H 'X-Api-Key:YOUR_API_KEY' -iHTTP/1.1 301 Moved PermanentlyStatus: 301 Moved PermanentlyLocation: http://api.newrelic.com/v2/applications/1234567890.json...You are being redirected https://api.newrelic.com/v2/applications/1234567890.jsonOR
bash
$curl -X GET 'http://api.newrelic.com/v2/applications/1234567890.json' \> -H 'X-Api-Key:YOUR_API_KEY'You are being redirected https://api.newrelic.com/v2/applications/1234567890.jsonSolution
New Relic requires HTTPS for all traffic to and the REST API. This includes both inbound and outbound traffic. If your REST API call uses HTTP, change your script or program to HTTPS.