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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user