Add ThingWorx Login Functionality to Unity App
I’m developing an app in Unity and need our users to be able to log in through it as they would on the ThingWorx login page (https://support.ptc.com/help/thingworx/platform/r9.5/en/#page/ThingWorx/Help/Composer/Security/Organizations/CreatingLoginPageFormsforOrganizations.html#).
I’m having the same problem at the OP here: https://community.ptc.com/t5/ThingWorx-Developers/Login-Implementation-with-username-password-via-Things-Service/m-p/662474
The value I get returned from the server is the HTML for the login page. I have tried setting the Accept header to "application/json", “text/plain”, and “text/csv” but to no avail. Unlike as described in the response by PEHOWE in the above link, I get the same HTML when testing in Postman.
My code is essentially the same (but using UnityWebRequest.Post()) as the OP here: https://community.ptc.com/t5/ThingWorx-Developers/C-based-login-fails-with-401/m-p/505077
Thanks in advance for any help.

