Multiple HTTP request in C#

后端 未结 5 1013
北海茫月
北海茫月 2021-02-15 01:56

I need to send about 200 HTTP requests in parallel to different servers and get response. I use HttpWebRequest class in C#. But I don\'t see good time enhancement when requests

5条回答
  •  星月不相逢
    2021-02-15 02:18

    Use asynchronous web requests in stead.

    Edit: http://msdn.microsoft.com/en-us/library/86wf6409(VS.71).aspx

提交回复
热议问题