Is it possible to change headers order using HttpWebRequest?

前端 未结 1 346
盖世英雄少女心
盖世英雄少女心 2021-01-18 17:42

I need to change the order of headers, I\'m using this:

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URL);
request.Method = context.Request.Htt         


        
1条回答
  •  执笔经年
    2021-01-18 17:53

    There was an outstanding complaint that .NET doesn't let you modify the Host header a while back. It might not have been resolved. If it is really that important, you could always write socket-level code to send a prepared request (since it's just text).

    0 讨论(0)
提交回复
热议问题