I am seeing some strange behavior in 2 of the SAP systems that I have access to. One of the system is new and this issue existed from day one. The other is an 'older' system that has only recently began exhibiting this issue.
I have written a simple HTML page as follows:
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript"> | |
function checkAjax() { | |
try { | |
var httpObj = new XMLHttpRequest(); | |
lv_url = "http://saptst2.3imw.com/xml_handler/inbox4.xml?appid=MW_240"; | |
httpObj.open("POST", lv_url, true); | |
httpObj.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); | |
httpObj.onreadystatechange = function () { checkResponse(httpObj) }; | |
httpObj.send(); | |
} | |
catch (e) { | |
alert('mwAppCache.checkAjax:' + e.message + '.'); | |
} | |
} | |
/*response from auth check*/ | |
function checkResponse(ivHttpRequest) { | |
try { | |
if (ivHttpRequest.readyState == 4) { | |
console.log('OK'); | |
console.log(ivHttpRequest.responseText); | |
} | |
} | |
catch (e) { | |
alert('mwAppCache.checkResponse-error:' + e.message + '.'); | |
} | |
} | |
</script> | |
</head> | |
<body> | |
<a href="javascript:checkAjax();"> | |
SendAjax | |
</a> | |
</body> | |
</html> |
When I execute the AJAX page I get a page thats says 'Your're response is being processed'. It never hits any of my break points and I am not sure why.
When I swtich on the ICF recorder I see the following error:
Now here is the kicker: If I change the type of AJAX call to GET (instead of POST) everything works great.
I am not really sure what is causing this issue nor have I been able to find anyhing on SDN or OSS.
Anyone seen this before or care to share some thoughts on this?
Alon