Keep a http connection alive in C#?

后端 未结 5 761
后悔当初
后悔当初 2021-01-12 00:04

How do i keep a connection alive in C#? I\'m not doing it right. Am i suppose to create an HttpWebRequest obj and use it to go to any URLs i need? i dont see a way to visit

5条回答
  •  轮回少年
    2021-01-12 00:37

    You can set the HttpWebRequest.KeepAlive property to true.

    For the Proxies, there is a property also: HttpWebRequest.Proxy

提交回复
热议问题