FSN#29180 Iets meer logging (ook de response text) bij HTTP-submit faal

svn path=/Website/branches/v5.4.1/; revision=21151
This commit is contained in:
Jos Groot Lipman
2014-03-27 10:06:24 +00:00
parent 1341115fb6
commit cbdc721d87

View File

@@ -51,9 +51,10 @@ function submitHTTP( p_connect
httpReq.send(p_textstream);
Log2File(1, "httpReq.Status: " + httpReq.Status);
Log2File(1, "httpReq.text: " + httpReq.statusText);
if (httpReq.Status < 200 || httpReq.Status > 299)
{
Log2File(1, "httpReq.text: " + httpReq.statusText);
Log2File(1, "httpReq.responseText: " + (httpReq.responseText||"<leeg>"));
RaiseAnError(httpReq.Status, "httpReq error " + httpReq.Status + ": (" + httpReq.statusText + ")")
}
Log2File(1, "*< submitHTTP");