Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an example for POST method HTTP Provider #146

Open
anthonyjdella opened this issue Nov 5, 2021 · 0 comments
Open

Add an example for POST method HTTP Provider #146

anthonyjdella opened this issue Nov 5, 2021 · 0 comments

Comments

@anthonyjdella
Copy link

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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants