I have an API proxy in Apigee that is authenticated using an API key. I pass the key with my HTTP request header using cURL using this command:
curl -v -H "apikey: my_key" http:
I get this error:
Invoke-WebRequest : Cannot bind parameter 'Headers'. Cannot convert the "apikey: my_key" value of type "System.String" to type "System.Collections.IDictionary".
When I change my policy to look for the key in the request parameter, not the header, it works fine. Did I miss something?
source share