Skip to content

cURL parameter compatibility #509

Open
@allevo

Description

@allevo

Hi!
To use autocannon, I commonly follow the steps:

  1. invokes the endpoint with a cURL, adjusting the input parameters and checking the response
  2. convert every cURL parameters into autocannon ones
  3. invokes the endpoint with autocannon with -a 1 -c 1 and see if the status code is 200 (hoping the response body is the same)
  4. invokes the endpoint with autocannon with parameters for load test

Unfortunately, the parameter conversion is not easy, and step 3 requires more retries.
My desiderata would be to replace the cURL command with autocannon without parameter conversion.
In this way, we can remove some pains during the tests.

Other considerations:

  • Another path I commonly take is to copy the cURL directly from the browser network tab.
  • We can start from the common cURL parameters like header and request body.

I can take this by providing a PR if you are interested in this enhancement, but please give me some input on where to start.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions