When you call one request to server, sometimes, you need to add custom header in HttpWebRequest, you can add it by add headers as below code. public string GetResponseFromServer(string url) { // Get the original response. HttpWebRequest request; request = (HttpWebRequest)WebRequest.Create(url); request.Accept = "*/*";
Thursday, 11 October 2018
- Blogger Comments
- Facebook Comments
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment