Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
post xml data with XMLHttpRequest
#1
Hi ATOZED,

Similar to the example "PostDataDemo", I want to query XML data via a corresponding content handler, but my content handler cannot find the query data.

C++ Builder 12 Patch 1
Edition: IntraWeb Ultimate Edition
IntraWeb Version: 15.6.3
32-bit Server on 64-bit Windows
HTTP Server is active on port: 80
HTTPS Server is active on port: 543 (OpenSSL v1.1.1)

In the server controller, the content handler is configured as follows:

this->SecurityOptions->HttpMethods << hmGet << hmPost;
this->SecurityOptions->ForceAjaxPost = true;

TIWMimeTypes::RegisterType(L".xml", L"application/xml; charset=UTF-8", false);
THandlers::Add(L"", L"Query.xml", new TIWH_Xml());

The query is made interactively via an XMLHttpRequest object (see appendix).
The HTML document is inserted into a frame of the MainForm.

The content handler is called correctly but the query data does not arrive:

aRequest->HasContent = true
aRequest->Files->Count = 0 !!!

The test tool specified in "How to simulate a request using Firefox Poster addon.png" (2017)
I could unfortunately no longer find it at Mozilla.

Is there something wrong with my example ?
Does anything else need to be configured ?

Regards
Juergen


Attached Files
.html   Query.html (Size: 691 bytes / Downloads: 1)
Reply


Messages In This Thread
post xml data with XMLHttpRequest - by JuergenS - 08-23-2024, 03:26 AM
RE: post xml data with XMLHttpRequest - by joergb - 08-23-2024, 10:36 PM
RE: post xml data with XMLHttpRequest - by joergb - 08-25-2024, 03:16 PM
RE: post xml data with XMLHttpRequest - by joergb - 08-26-2024, 02:57 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)