microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.91k stars 1.64k forks source link

Server throws error 400 #1735

Closed swanandb2 closed 1 year ago

swanandb2 commented 1 year ago

I am facing issue, where I invoking API through CPP REST SDK post server throws 400 error, same API is working with swagger and C# http rest client. I compare response on wireshark almost identical i saw difference in connection type keep alive when request is throw by REST SDK is there anyway to disable this?

RestSdk_Query

I am stuck and open for any other suggestion.

swanandb2 commented 1 year ago

It was due to invalid args, I have updated and verified it works! Integer was passed as JSON and server was expecting in string format :)