0
我試圖發佈到服務器時碰到了包版。我所做的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>
任何想法我做錯了什麼?
Whomp哇:(誰主機遊戲開發服務器沒有標記爲垃圾郵件的任何想法? – BearInATie 2013-07-19 14:13:39