Payload encoded

Any ideas as to why the http request is successful but the payload is encoded? I've tried copying the exact headers from postman where the request returns JSON.

[{"id":"fc3aa7ef.2394a8","type":"inject","z":"537282d2.f8aedc","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":150,"y":360,"wires":[["86c0e244.f4e08"]]}]
���
�0�_EnC��@�V��.��!�;��R�w�ݿ��.`/-~gFv��=�����#o8G߼_�{��(7!n���B>��&U��gRT�pIUx�Pd�t\�33��o��u�O}!��|JD����*��	�/E]+��Ï��

Any help would be appreciated

[{"id":"fc3aa7ef.2394a8","type":"inject","z":"537282d2.f8aedc","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":150,"y":360,"wires":[["86c0e244.f4e08"]]},{"id":"86c0e244.f4e08","type":"function","z":"537282d2.f8aedc","name":"Set Payload and Headers","func":"msg.payload = \"data to post\";\nmsg.headers = {\n    'Cookie': 'Cookie_4=value; ACC-XSRF-TOKEN=XXXXXXXXX; web_token=XXXXXXXXXXX',\n    'Cache-Control':'no-cache',\n    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36',\n    'X-XSRF-TOKEN' : 'XXXXXXXXX',\n    'Accept': 'application/json',\n    'Accept-Encoding': 'gzip,deflate,br',\n    'Connection':  'keep-alive',\n    'Content-type': 'application/json, text/plain, */*',\n};\nreturn msg;","outputs":1,"noerr":0,"x":350,"y":360,"wires":[["b0d0ead6.1ee9c8"]]},{"id":"4931b4b2.7b831c","type":"comment","z":"537282d2.f8aedc","name":"Pre-Implementation - Server Versions List","info":"","x":680,"y":340,"wires":[]},{"id":"b0d0ead6.1ee9c8","type":"http request","z":"537282d2.f8aedc","name":"POST/apiadmin/update/getStatus","method":"POST","ret":"obj","paytoqs":false,"url":"TEST URL","tls":"","persist":false,"proxy":"","authType":"basic","x":662,"y":375,"wires":[["878b56fd.4d5d28","a20b0d2a.ff4a"]]},{"id":"878b56fd.4d5d28","type":"debug","z":"537282d2.f8aedc","name":"/getStatus Payload Complete","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","x":1022,"y":375,"wires":[]},{"id":"a20b0d2a.ff4a","type":"debug","z":"537282d2.f8aedc","name":"/getStatus Payload","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":992,"y":455,"wires":[]}]

Exported incorrectly the first time. My apologies

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.