Atozed Forums
Intraweb for Rest API POST - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Intraweb for Rest API POST (/thread-1402.html)

Pages: 1 2


RE: Intraweb for Rest API POST - Alexandre Machado - 11-26-2019

(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


RE: Intraweb for Rest API POST - kudzu - 11-26-2019

(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...