Request Web Page in c# spoofing the Host

后端 未结 9 1295
攒了一身酷
攒了一身酷 2020-12-01 06:10

I need to create a request for a web page delivered to our web sites, but I need to be able to set the host header information too. I have tried this using HttpWebRequest,

9条回答
  •  [愿得一人]
    2020-12-01 06:37

    You can use my solution for this problem, it posted here :

    How to set custom "Host" header in HttpWebRequest?

    This can help you to edit host header, and avoid to using proxy and direct socket requests.

提交回复
热议问题