Multiple HTTP request in C#

后端 未结 5 996
北海茫月
北海茫月 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:07

    This is the code of android application of sending the request. How can we use the upper code like:

    params.add(new BasicNameValuePair("key", "value");
    HttpPost request = new HttpPost();
    List params = new ArrayList();
    params.add(new BasicNameValuePair("key", "value");// How can we give the value in this format format
    post.setEntity(new UrlEncodedFormEntity(params));
    
    httpClient.execute(request);
    

提交回复
热议问题