Skip to main content
11-Garnet
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
19-Tanzanite

Hi @Snoopy_hu 

 

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

 

/VR

 

 

2 replies

Velkumar19-TanzaniteAnswer
19-Tanzanite

Hi @Snoopy_hu 

 

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

 

/VR

 

 

Translate
Snoopy_hu11-GarnetAuthor
11-Garnet

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

Translate