Monday 15 June 2015

c# - MVC Redirect with headers -


In an action method, I want to redirect to a third party URL. They collect some information from custom headers.

I understand that I can not redirect the user, for example:

  return redirection (some urls);  

Because the browser will not repeat my custom headers ..

How can I do this? Is this a wrong approach?

They collect some information from custom headers

Then you can not redirect you need to read your documents. You are expected to make an HTTP request to their server and show a response to the user.


No comments:

Post a Comment