Hot to get custom http-header in asp.net?

Posted by Sirius Lampochkin on Stack Overflow See other posts from Stack Overflow or by Sirius Lampochkin
Published on 2010-05-14T12:58:12Z Indexed on 2010/05/14 13:04 UTC
Read the original article Hit count: 301

I have an asp.net appliction on the one server. There I've added code on server-side in Page_Load: Response.AddHeader("key", "password-key-from-hotel"); On the client side I have a form: $lt;form ... action="www.link-to-another-domaint" >
  <input type="hidden" id="asd" value="fgh" >
.... </form>
<script type="text/javascript">
  document.forms[0].submit(); </script>

Then on the other domain - there is also my other application - I'm trying to get the hedaer "key" by this code:
Request.Headers["key"].ToString();
But there is no such header. Is there is a desicion? Where is my mistake?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about httpheader