You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, Is there a way to POST and GET requests with json as a body ?
Something like running nigthawk client with:
--request-method POST --request-header 'Content-Type: application/json' and --request-body '{foo: bar}'
I see in Readme there is only --request-body-size that is int.
Same thing for nighthawk server is there a way to get json or other message instead of multiple a's ?
Thanks :)
The text was updated successfully, but these errors were encountered:
@MichalzDev that is correct, both the client and the server currently just send the response_body_size times the a character. Here is the server portion.
With that said, adding a support for a custom response body is fairly trivial in both the client and the server. We do plan adding it into the client and a contribution to the server side would also be welcome if you are interested.
Hi, Is there a way to POST and GET requests with json as a body ?
Something like running nigthawk client with:
--request-method POST --request-header 'Content-Type: application/json' and --request-body '{foo: bar}'
I see in Readme there is only --request-body-size that is int.
Same thing for nighthawk server is there a way to get json or other message instead of multiple a's ?
Thanks :)
The text was updated successfully, but these errors were encountered: