Skip to main content
Jul 20, 2021 5:08 PM UTC
Solved

Status code of HTTP requests

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

Jul 21, 2021 12:23 PM UTC

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

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

1 reply

Jul 21, 2021 12:23 PM UTC

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

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