I just want to ask how can i use HttpRequest in passing a parameter. We use Header for storing the parameter.
This is used to support Single Sign On function.
Thanks in advance! :)
I just want to ask how can i use HttpRequest in passing a parameter. We use Header for storing the parameter.
This is used to support Single Sign On function.
Thanks in advance! :)
You can use the Request object in your C# mvc controller:
Request.Header.Add(string name, string value);
- adds a parameter to the header
Request.Header.GetKey(string name);
- access parameter entered into the header
I hope this helps out, and answers your question since it was a little unclear regarding type of technology you want to use
Edit - New Information about problem
HttpContext context = HttpContext.Current;
string username = context.Request.Headers["username"].ToString();
string password = context.Request.Headers["password"].ToString();
This can serve as a good replacement for the helper function