728x90 AdSpace

  • Latest News

    Thursday 11 October 2018

    [Tips] Add custom header in HttpWebRequest

    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 = "*/*";           
    • Blogger Comments
    • Facebook Comments

    0 comments:

    Post a Comment

    Item Reviewed: [Tips] Add custom header in HttpWebRequest Rating: 5 Reviewed By: Unknown
    Scroll to Top