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

How to define headers in json? #28

Closed
jwillmer opened this issue Sep 26, 2019 · 2 comments
Closed

How to define headers in json? #28

jwillmer opened this issue Sep 26, 2019 · 2 comments

Comments

@jwillmer
Copy link

I need to supply a json payload and the HTTP request does not allow to use header params when defining json payload. But how is the json format for HTTP request headers? Also, does the header auth merge with the json headers?

image

@janober
Copy link
Member

janober commented Sep 26, 2019

Sorry I am not sure if I understand you correctly.

You wrote: "I need to supply a json payload and the HTTP request does not allow to use header params when defining json payload."
But in the screenshot afterwards you have headers defined {"Content-Type": ... and also a JSON payload (Body Parameters).

The format is simply:

{
  "name": "value"
}

Yes the headers get merged. The request library which gets used under the hood does take care of that.

@janober
Copy link
Member

janober commented Sep 26, 2019

And can you please post questions like that in the future here:
https://community.n8n.io

The issues are mainly for bugs and the forum for questions and problems. That makes it easier for users to find a solution for their problems if they are all in the same spot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants