Andy Green
asked on
Adding a header value from code behind
Hi
I have an external API endpoint that receives a GET request with a querystring parameter of Id, this is used with an internal controller / service to get some more info about the subject (Internal Id), and is passed on through a secure gateway down to an internal controller.
How do I add an the Internal Id parameter to the header of the request goining down to the internal API. I cant use the querystring.
Any pointers would be great.
Andy
I have an external API endpoint that receives a GET request with a querystring parameter of Id, this is used with an internal controller / service to get some more info about the subject (Internal Id), and is passed on through a secure gateway down to an internal controller.
How do I add an the Internal Id parameter to the header of the request goining down to the internal API. I cant use the querystring.
Any pointers would be great.
Andy
You need to check the internal API, what it accepts. This is something we cannot know.
ASKER
Sorry for got to mention, I'll be coding these changes. SO I need to get the parameter into the header to pass on to the internal API, I'm hoping once I can get the param down to the lower API I'll be able to figure out how to read it. :-).
A
A
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Just check the binding options. Look especially at the FromHeader attribute.
hmm, seems I forgot to press submit yesterday..
hmm, seems I forgot to press submit yesterday..