Skip to content

Json Content-Type #12

@MohamadHamamah

Description

@MohamadHamamah

Hello,
I used your HTTP-Load-Generator with Tea-Store benchmark and it was easy to write the script since they provide examples.

Now I am trying to write scripts for another application and I am facing a problem. When I want to send POST request, it fails to send it. I checked their code and I think the reason is the Content-Type.
In the examples provided by you, you use url-encoded format to send the payload. The application ,that I want to generate load for, uses json format which means that I have to specify the Content-Type in the header request as application/json instead of application/x-www-form-urlencoded.

Is there any way to change or name the content-type for POST requests in your generator?

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