0

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.enter image description here

enter image description here

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 Answers1

1

I was actually able to perform the request using the web postman... See here the headers:

enter image description here

And here the request/response: enter image description here

I dont think so, but... Might it be the tabs in the body?

ppanero
  • 327
  • 5
  • 17