Skip to main content
1-Visitor
July 20, 2021
Solved

Status code of HTTP requests

  • July 20, 2021
  • 1 reply
  • 1288 views

Hello,

 

how to get the status code of HTTP request (POST/GET)?

I am using PostJSON function of ContentLoader class to send request to a remote url.

 

Similar question has been asked in the past with no answer:

https://community.ptc.com/t5/ThingWorx-Developers/Set-HTTP-status-code-and-header-in-service-for-REST/td-p/568118

https://community.ptc.com/t5/ThingWorx-Developers/Get-HTTP-error-code/td-p/513462

 

Thank you in advance.

Pietro

Best answer by DmitryTsarev

Seems the feature you're looking for is only available starting ThingWorx 9.2

https://www.ptc.com/en/support/article/CS228550

1 reply

17-Peridot
July 21, 2021

Seems the feature you're looking for is only available starting ThingWorx 9.2

https://www.ptc.com/en/support/article/CS228550