Quantcast
Channel: Atozed Forums - All Forums
Viewing all articles
Browse latest Browse all 275

post xml data with XMLHttpRequest

$
0
0
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-&tSecurityOptions-&tHttpMethods &t&t hmGet &t&t hmPost;
this-&tSecurityOptions-&tForceAjaxPost = 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-&tHasContent = true
aRequest-&tFiles-&tCount = 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

.html   Query.html (Size: 691 bytes / Downloads: 0)

Viewing all articles
Browse latest Browse all 275

Trending Articles