Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
POST Method problem
#1
IntraWEB 14.2.7
Delphi  Delphi 10.2 Update 3

When posting (using REST Client) MD=55E38206236453324085 as a single Param/Value, all these properties are set to Empty and the POST event not handled even the mHasContent is set to True.

Please note that these properties are inspected in the NeWession Event.
//////////////////////////////////////
mHasContent: True
mParams: Empty
mQueryFields: Empty
mContentFields: Empty
FRunParams: Empty
//////////////////////////////////////

The result of the POST method:
//////////////////////////////////////
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<script type="text/javascript">
function getWH(){var a=0,b=0,f=document,e=window,c=e.devicePixelRatio||1;if(e&&e.innerWidth){a=e.innerWidth;b=e.innerHeight}else{if(f.documentElement&&f.documentElement.clientWidth){a=f.documentElement.clientWidth;b=f.documentElement.clientHeight}else{if(f.body&&f.body.clientWidth){a=f.body.clientWidth;b=f.body.clientHeight}}}return[a,b,c]}function consoleError(a){if(window.console&&window.console.error){console.error(a);return true}else{return consoleWrite(a)}}function getNodeText(b){var a="";if(!b){return a}if(b.nodeType===3||b.nodeType===4){return b.data}if(b=b.firstChild){do{a+=getNodeText(b)}while(b=b.nextSibling)}return a}function WriteToDoc(a){var b=document.open("text/html","replace");b.write(a);b.close()}function processAjaxRewrite©{try{var a=getNodeText(c[0]);if(a.slice(0,1)!=="<"){window.location.replace(res)}else{WriteToDoc(a)}}catch(b){consoleError("Error in processAjaxRewrite(): "+a+"\n"+b.message)}}function processAjaxResponse(b){var c=b.getElementsByTagName("response");if(c==null||c.length!=1){return}var a=b.getElementsByTagName("rewrite");if(a.length>0&&a[0].childNodes.length>0){processAjaxRewrite(a[0].childNodes)}}function ajaxGetCallback(b){if(window.ActiveXObject){var a=new ActiveXObject("Microsoft.XMLDOM");a.async=false;a.loadXML(b)}else{var c=new DOMParser();var a=c.parseFromString(b,"text/xml");c=null}if(a){processAjaxResponse(a);a=null}}function ajaxGet(a,c,d){var b=new XMLHttpRequest();b.open("GET",a+c,true);if(b.responseType){b.responseType="text"}b.onreadystatechange=function(){if(b.readyState===4&&b.status===200&&d){d(b.responseText)}};b.send()};
function get(url) {
  var s = getWH();
  var p = "?IW_AjaxID=" + new Date().getTime();
  p += "&IW_width=" + s[0] + "&IW_height=" + s[1] + "&IW_dpr=" + s[2];
  p += "&IW_SessionID_=234B8207008338835FC8&IW_TrackID_=1";
  ajaxGet(url, p, function(t, s){ajaxGetCallback(t, s);});
}
</script>
</head>
<body>
<script type="text/javascript">
 get("/234B8207008338835FC8/$/StartCheck");
</script>
</body>
</html>
//////////////////////////////////////

Please how to handle the POST Method witch would be initiated by a third party application (Client or server)
Reply
#2
As this is not a IW17 question, please repost it in the general IW forum so that others may see it. I tried to move it, but it is not an admin option to move to another forum.
Reply
#3
Jose was able to move the thread to the main IW forum.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)