ed1t
ed1t

Reputation: 8689

concurrent curl POST requests

What's the quickest way to create concurrent curl requests? I have a app which accepts POST requests and would like to do some load testing

I would like to run the following cURL command concurrently and not sequentially

 curl -d "param1=value1&param2=value2" http://example.com/test

Thanks

Upvotes: 3

Views: 4771

Answers (3)

user1960227
user1960227

Reputation: 1

I do this kind of thing (generating concurrent POST requests) with a few small perl scripts I wrote:

http://patrick.net/sprocket/rwt.html

I'm planning to port it to python, but the perl version works pretty well right now.

Upvotes: 0

Alex Howansky
Alex Howansky

Reputation: 53523

How about ApacheBench? You've probably already got it installed.

Upvotes: 6

Dimitrios Mistriotis
Dimitrios Mistriotis

Reputation: 2788

I am not confident but spawning multiple processes in the bachground?

nohup curl -parameters &

For load testing perhaps you need something like multi-threading, you might also want to research for already available tools.

Upvotes: 1

Related Questions