How to send lower-case Keep-Alive header through HttpWebRequest

前端 未结 3 1556
刺人心
刺人心 2020-12-16 08:09

I\'m writing a bot, which should emulate firefox as closely as possible. By examining the headers that it is sending, I\'ve found one minor difference, that I do not know ho

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-16 08:27

    Connection: keep-alive is default header of Chrome and Firefox browser.

    Connection: Keep-Alive is default header of Internet Explorer. Absolutely

    Connection: Keep-Alive is default header of HttpWebRequest. I think you should writing a bot like IE is best choice if using HttpWebRequest.

提交回复
热议问题