I am using NodeJS and Request to post JSON and get a result with data in it.
I set this request up with Postman and I get the JSON data back which is completely readabl
Most likely the data you're seeing is compressed (with gzip) since you are sending a header that says you are willing to accept such a response. Set gzip: true
in your request()
options and request
should automatically decompress the body
passed to your callback.
Or just remove the 'accept-encoding': 'gzip, deflate, br'
line in your headers
object to not request gzip compression.