8 Nov
2016
8 Nov
'16
6:01 p.m.
Hey all, I'm attempted to pass two headers along with the http request. I found httphdr which appears to be what I want to use.
This is the hosts entry as it stands now. (two lines 0.0.0.0 apiserver # noconn auto https://apiserver/api/status httphdr="X-app-key: 00000000000 X-app-id: 1111111"
I also tried 0.0.0.0 apiserver # noconn auto https://apiserver/api/status httphdr="X-app-key: 00000000000, X-app-id: 1111111"
When I run this from the command line it works as expected curl -H "X-app-id: 1111111" -H "X-app-key: 0000000000" https://apiserver/api/status
Suggestions on what to tweak to make this funcitonal?