Skip to main content
Mar 29, 2024 8:38 AM UTC
Solved

rest API

I created a restapi interface that outputs thingworx in json format, why is the response in HTML format?企业微信截图_17117012635491.png企业微信截图_17117013746276.png

VelkumarAnswer
Mar 29, 2024 8:59 AM UTC

Hi @Snoopy_hu 

 

Add header value: "Accept": "application/json"

 

/VR

 

 

2 replies

VelkumarAnswer
Mar 29, 2024 8:59 AM UTC

Hi @Snoopy_hu 

 

Add header value: "Accept": "application/json"

 

/VR

 

 

Snoopy_huAuthor
Apr 1, 2024 1:29 AM UTC

Thanks, following your method worked for me, I was also wondering how to set the cookie