Passing API key with HTTP header in cURL

Try this:

curl -v -H @{'apikey' = 'my_key'} http://api_org-test.apigee.net/v1/helloapikey

Note: curl is an alias for the Invoke-WebRequest cmdlet:

Get-Alias curl

output:

CommandType     Name
-----------     ----
Alias           curl -> Invoke-WebRequest 

You could install curl: https://stackoverflow.com/a/16216825/3013633

Remove existing curl alias by executing this command:

Remove-item alias:curl

Then your command will work:

curl -v -H "apikey: my_key" http://api_org-test.apigee.net/v1/helloapikey