I'm making a post request. I have raw body set to application/json I've also overriden the 'Accept' header from '/' value to 'application/json'. But I keep getting unsupported media type.
Asked
Active
Viewed 3,639 times
0

anuar
- 66
- 1
- 7
-
At first glance, you have a duplicated `Accept` header, not sure how Postman behaves with that... could you try removing the `*/*`? – ppanero Feb 17 '21 at 19:10
-
You can't remove it since it's auto-generated, but when I hover over it it says it is ignored since I added a custom duplicate – anuar Feb 17 '21 at 19:11
-
seems to be a postman specific error... from the terminal: `curl -XPOST "https://www.nyse.com/api/quotes/filter" -H "Accept: application/json" -H "Content-Type: application/json" -d '{ "filterToken": "", "maxResultsPerPage": 10, "sortOrder": "ASC"}'` works... – ppanero Feb 17 '21 at 19:15
-
You can untick those auto gen headers, might also be would going to the settings of the request and disable the cookie jar option. – Danny Dainton Feb 17 '21 at 19:27
1 Answers
1
I was actually able to perform the request using the web postman... See here the headers:
And here the request/response:
I dont think so, but... Might it be the tabs in the body?

ppanero
- 327
- 5
- 17
-
I removed the tabs and still the same. That's crazy you were able to, I'm even more confused now haha – anuar Feb 17 '21 at 19:31
-
Does it to the same @anuar if you recreated the whole thing in a new tab? – Danny Dainton Feb 17 '21 at 19:35