发送请求时发生内部错误(POST

时间:2017-06-11 16:01:53

标签: javascript apache

我每天在Apache错误日志中每隔5-10分钟就会出现以下错误:

[Sun Jun 11 18:49:59] [lsapi:error] [pid 733425:tid 139] [client 111.1.1.1:57199] [host www.example.com] get_client_block(102400) failed, referer: http://www.example.com/
[Sun Jun 11 18:49:59] [lsapi:error] [pid 733425:tid 139] [client 111.1.1.1:57199] [host www.example.com] Internal error on sending request(POST /promote.php HTTP/1.1); uri(/ptp/promote.php) content-length(60): SendRequest: prepare(): user_get_body(bodyLocalBuf, 102400): read from client failed, referer: http://www.example.com/

我怀疑它来自我一直在使用的以下功能:

function confirm() {

var http = new XMLHttpRequest();
var url = "promote.php?user=' . $link . '";
var params = "confirm_ref=' . urlencode(encrypt($reff,$key)) . '";
http.open("POST", url, true);
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.onreadystatechange = function() {
        if(http.readyState == 4 && http.status == 200) {

        }
            }
http.send(params);
}

变量是php变量,永远不会是空白。 但无法弄清楚问题可能来自何处。 有什么指针吗?谢谢。

0 个答案:

没有答案