Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Intraweb for Rest API POST
#11
(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
Reply


Messages In This Thread
Intraweb for Rest API POST - by ShaneStump - 11-25-2019, 08:05 PM
RE: Intraweb for Rest API POST - by kudzu - 11-25-2019, 08:43 PM
RE: Intraweb for Rest API POST - by ShaneStump - 11-25-2019, 08:58 PM
RE: Intraweb for Rest API POST - by kudzu - 11-26-2019, 03:29 PM
RE: Intraweb for Rest API POST - by ShaneStump - 11-25-2019, 10:19 PM
RE: Intraweb for Rest API POST - by ShaneStump - 11-26-2019, 11:33 AM
RE: Intraweb for Rest API POST - by ShaneStump - 11-26-2019, 02:02 PM
RE: Intraweb for Rest API POST - by ShaneStump - 11-26-2019, 03:13 PM
RE: Intraweb for Rest API POST - by Alexandre Machado - 11-26-2019, 06:15 PM
RE: Intraweb for Rest API POST - by kudzu - 11-26-2019, 10:40 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)