2014-10-31 70 views
-1

當我送從Linden Scripting Language腳本的請求與LlHTTPRequest到PHP我沒有得到的值在PHP中:林登腳本語言張貼到PHP

例子:(LSL)

if(group_invite == "yes") 
{ 

    list agents = llParseString2List(this_agent_name, [" "], []); 

    string params = llDumpList2String([ 
     "firstname=" + llList2String(agents, 0), 
     "lastname=" + llList2String(agents, 1)], 
     "&"); 

    llHTTPRequest(
     "http://mysite/post-page.php", 
     [HTTP_METHOD,"POST"], 
     params); 
} 

我從來沒有得到firstnamelastname的值。

+0

什麼是'LSL'?請解釋更多。 – JakeGould 2014-10-31 02:03:51

+0

http://en.wikipedia.org/wiki/Linden_Scripting_Language – duskwuff 2014-10-31 02:04:58

回答

0

要在一個POST請求的格式提交的參數,您的要求必須具備Content-Type頭設置爲application/x-www-form-urlencoded

llHttpRequest(
    "http://example.com/post-page.php", 
    [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded"], 
    params); 
+0

是的作品,thnx你非常! – 2014-10-31 03:40:25