PUT request for Rest API

PUT request for Rest API

BY 31 Jan 2018 Native Application Development

I’ve been trying for a few weeks now to make a simple PUT request to a Rest API. I’ve created an HttpClient helper C++ class to make life easy. However it does not seem as if the data is getting to the server and as a result the server is kicking back a 404 response.

I have a C# background and have prototyped the request I’m trying to make in Powershell where the request works just fine. I just can’t seem to get the C++ Curl libraries to do the same.

For better context, this is for my Samsung Gear S3 Classic

I’ve attached the combined header/implementation files.

Help appreciated!

Thanks,

Brian

Written by