0

我在尝试发布到服务器时遇到了障碍。我什至使用以下 Opened() 创建了 TCPLink 类的子类(GET 函数有效)

event Opened()
{  
    //let the php file know what's coming
    WorldInfo.Game.Broadcast(self, "REQUEST TEXT: " $ RequestText);
    if(bGetData){
        SendText("GET /"$TargetPath$"?"$RequestText$" HTTP/1.0"$chr(13)$chr(10));
    }else{
        SendText("POST /"$TargetPath$" HTTP/1.0"$chr(13)$chr(10));
        WorldInfo.Game.Broadcast(self, "SENDING POST");
        `log("---------------------------SENDING POST-------------------------");
    }
    SendText("Host: "$TargetHost$chr(13)$chr(10));
    SendText("User-Agent: HTTPTool/1.0"$Chr(13)$Chr(10));
    SendText("Content-Type: application/x-www-form-urlencoded"$chr(13)$chr(10));
    SendText("Content-Length: "$len(RequestText)$Chr(13)$Chr(10));
    SendText(chr(13)$chr(10));
    //send securitykey, command and params for php to use
    SendText(RequestText);
    SendText(chr(13)$chr(10));
    SendText("Connection: Close");
    SendText(chr(13)$chr(10)$chr(13)$chr(10));
}

我知道它尝试发送帖子(我看到广播和日志消息),但日志显示此错误:

[0042.56] ScriptLog: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://hosting.zymic.com/forum-spam">here</a>.</p>
</body></html>

知道我做错了什么吗?

4

1 回答 1

1

由于垃圾邮件问题,您的托管公司似乎关闭了您的网站?多次发送这样的请求可能会将您标记为垃圾邮件发送者。

于 2013-07-18T08:51:03.200 回答