mirror of
https://github.com/opensim/opensim.git
synced 2026-07-13 19:14:51 +08:00
From Michael Osias (IBM)
This patch implements the llHttpRequest function via a region module, HttpScriptsRequest. There were bits and peices in LSLLong_cmd_handler, which I moved into the region module, and just check for completed requests and dispatch the http_response callback event instead. works for me as of r2674
This commit is contained in:
@@ -2451,9 +2451,18 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler
|
||||
return llStringToBase64(ret);
|
||||
}
|
||||
|
||||
public void llHTTPRequest(string url, List<string> parameters, string body)
|
||||
public string llHTTPRequest(string url, List<string> parameters, string body)
|
||||
{
|
||||
m_ScriptEngine.m_LSLLongCmdHandler.StartHttpRequest(m_localID, m_itemID, url, parameters, body);
|
||||
IHttpRequests httpScriptMod =
|
||||
m_ScriptEngine.World.RequestModuleInterface<IHttpRequests>();
|
||||
|
||||
LLUUID reqID = httpScriptMod.
|
||||
StartHttpRequest(m_localID, m_itemID, url, parameters, body);
|
||||
|
||||
if( reqID != null )
|
||||
return reqID.ToString();
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
public void llResetLandBanList()
|
||||
|
||||
Reference in New Issue
Block a user