chaostoolkit-documentation icon indicating copy to clipboard operation
chaostoolkit-documentation copied to clipboard

Add an example for POST method HTTP Provider

Open anthonyjdella opened this issue 4 years ago • 0 comments

Per the documentation for HTTP Provider:

The method property MUST be a JSON string, such as "POST", as per RFC 7231. It defaults to "GET".
When provided, the arguments property MUST be a JSON object which properties are parameters of the HTTP request.

When method is "GET", the arguments are mapped as a query-string of the URL. Otherwise, the arguments are passed as the request body’s data and the encoding depends on the "Content-Type" provided in the headers object.
  1. Can you provide an example using an POST method with some included arguments passed into the argument body (request body)?
  2. Can you go into more details about the various encoding based on the "Content-Type" in the header?

anthonyjdella avatar Nov 05 '21 16:11 anthonyjdella