Rohan Ramani

Rohan Ramani

  • NA
  • 786
  • 138.5k

Get Value from Header ASP.Net Core

Oct 12 2018 7:19 AM
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)