cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Executing a GET using cpprest returns a 405

aamberman
1-Visitor

Executing a GET using cpprest returns a 405

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 1
dupatel
19-Tanzanite
(To:aamberman)

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

Announcements


Top Tags