Skip to main content
1-Visitor
December 12, 2017
Question

Executing a GET using cpprest returns a 405

  • December 12, 2017
  • 1 reply
  • 2198 views

I have a URL which checks for the existence of a thing(https://thingworx-mvp.xrite.com/Thingworx/Things/thingName) which is issued as a GET from a c++ class using cpprest. The response is always a 405 from the cpprest class, however, when I execute the URL from Postman, a 200 is returned. Using a browser(chrome) also returns a 200 after asking for authentication.


The request headers from cpprest and Postman are identical. I have come across a few examples of people having similar issues and saying that you should replace the GET w/a POST. I tried that but received a 400 from the cpprest implementation and a 405 from Postman.


Why would the cpprest implementation return a different  result than Postman if the URL and request headers are identical?

1 reply

5-Regular Member
December 22, 2017

Aaron Amberman​: This is seems strange issue so could you please provide exact rest call made inside from C++ cpprest Vs using Postman. Just wanted to check if you tried ThingWorx C SDK?

-Durgesh