7
Answers

Get Value from Header ASP.Net Core

Rohan Ramani

Rohan Ramani

6y
19.6k
1
Hi All,
 
I want to get value from the header.
Means when I pass the parameter from header, I need the value using key from the headers.
 
  1. WebClient webClient = new WebClient();  
  2. webClient.QueryString.Add("param1""value1");  
  3. webClient.QueryString.Add("param2""value2");  
  4. string result = webClient.DownloadString("http://theurl.com");  
 Is there any one have idea? 
Answers (7)