How do I use cURL to perform multiple simultaneous requests?

后端 未结 3 992
清酒与你
清酒与你 2020-12-29 04:18

I\'d like to use cURL to test flood handling on my server. Right now I\'m using this on a Windows command line:

curl www.example.com
         


        
3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-29 04:49

    While curl is a very useful and flexible tool, isn't intended for this type of use. There are other tools available which will let you make multiple concurrent requests to the same URL.

    ab is a very simple yet effective tool of this type, which works for any web server (despite the introduction focusing on Apache server).

    Grinder is a more sophisticated tool, which can let you specify many different URLs to use in a load test. This lets you mix requests for cheap and expensive pages, which may more closely resemble standard load for your website.

提交回复
热议问题