aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/HttpRequest.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/HttpRequest.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/HttpRequest.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/HttpRequest.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/HttpRequest.cs
index f5a965b..4c7dc8d 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/HttpRequest.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/HttpRequest.cs
@@ -26,7 +26,7 @@
26 */ 26 */
27 27
28using System; 28using System;
29using OpenSim.Region.Environment.Interfaces; 29using OpenSim.Region.Framework.Interfaces;
30using OpenSim.Region.Environment.Modules.Scripting.HttpRequest; 30using OpenSim.Region.Environment.Modules.Scripting.HttpRequest;
31using OpenSim.Region.ScriptEngine.Shared; 31using OpenSim.Region.ScriptEngine.Shared;
32using OpenSim.Region.ScriptEngine.Interfaces; 32using OpenSim.Region.ScriptEngine.Interfaces;
@@ -48,13 +48,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
48 if (m_CmdManager.m_ScriptEngine.World == null) 48 if (m_CmdManager.m_ScriptEngine.World == null)
49 return; 49 return;
50 50
51 IHttpRequests iHttpReq = 51 IHttpRequestModule iHttpReq =
52 m_CmdManager.m_ScriptEngine.World.RequestModuleInterface<IHttpRequests>(); 52 m_CmdManager.m_ScriptEngine.World.RequestModuleInterface<IHttpRequestModule>();
53 53
54 HttpRequestClass httpInfo = null; 54 HttpRequestClass httpInfo = null;
55 55
56 if (iHttpReq != null) 56 if (iHttpReq != null)
57 httpInfo = iHttpReq.GetNextCompletedRequest(); 57 httpInfo = (HttpRequestClass)iHttpReq.GetNextCompletedRequest();
58 58
59 while (httpInfo != null) 59 while (httpInfo != null)
60 { 60 {
@@ -67,24 +67,24 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
67 // implemented here yet anyway. Should be fixed if/when maxsize 67 // implemented here yet anyway. Should be fixed if/when maxsize
68 // is supported 68 // is supported
69 69
70 iHttpReq.RemoveCompletedRequest(httpInfo.reqID); 70 iHttpReq.RemoveCompletedRequest(httpInfo.ReqID);
71 71
72 object[] resobj = new object[] 72 object[] resobj = new object[]
73 { 73 {
74 new LSL_Types.LSLString(httpInfo.reqID.ToString()), 74 new LSL_Types.LSLString(httpInfo.ReqID.ToString()),
75 new LSL_Types.LSLInteger(httpInfo.status), 75 new LSL_Types.LSLInteger(httpInfo.Status),
76 new LSL_Types.list(), 76 new LSL_Types.list(),
77 new LSL_Types.LSLString(httpInfo.response_body) 77 new LSL_Types.LSLString(httpInfo.ResponseBody)
78 }; 78 };
79 79
80 foreach (IScriptEngine e in m_CmdManager.ScriptEngines) 80 foreach (IScriptEngine e in m_CmdManager.ScriptEngines)
81 { 81 {
82 if (e.PostObjectEvent(httpInfo.localID, 82 if (e.PostObjectEvent(httpInfo.LocalID,
83 new EventParams("http_response", 83 new EventParams("http_response",
84 resobj, new DetectParams[0]))) 84 resobj, new DetectParams[0])))
85 break; 85 break;
86 } 86 }
87 httpInfo = iHttpReq.GetNextCompletedRequest(); 87 httpInfo = (HttpRequestClass)iHttpReq.GetNextCompletedRequest();
88 } 88 }
89 } 89 }
90 } 90 }