Atozed Forums

Full Version: Intraweb for Rest API POST
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(11-26-2019, 03:13 PM)ShaneStump Wrote: [ -> ]Jose,

It is working in Delphi example but not in my C++ application. The handler gets executed, but the content isn't there.

I will need to see if there is anything else changed or if the is a compatibility with C++ Builder.

Thanks,

Shane

Howdy All!

I figured out the DIFFERENCE in the example / my code!

In the ServerController, need to add the following line to my ConfigBase event:

RegisterContentType(L"application/xml");

Now it works!

Thanks for the help,

Shane

The demo is a complete example. The key is registering the content type via

RegisterContentType() call
(11-26-2019, 03:13 PM)ShaneStump Wrote: [ -> ]I figured out the DIFFERENCE in the example / my code!

In the ServerController, need to add the following line to my ConfigBase event:

RegisterContentType(L"application/xml");

Yep! Thats the call I was thinking of...
Pages: 1 2