Link to home
Start Free TrialLog in
Avatar of Andy Green
Andy GreenFlag for United Kingdom of Great Britain and Northern Ireland

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
Avatar of ste5an
ste5an
Flag of Germany image

You need to check the internal API, what it accepts. This is something we cannot know.
Avatar of Andy Green

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
ASKER CERTIFIED SOLUTION
Avatar of Andy Green
Andy Green
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Just check the binding options. Look especially at the FromHeader attribute.

hmm, seems I forgot to press submit yesterday..