aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
authorCharles Krinke2008-07-14 13:51:54 +0000
committerCharles Krinke2008-07-14 13:51:54 +0000
commit00791594ad4ed6d78bd6edbb2e02eaaf5c30c8ce (patch)
tree17bf6ae0214a3b83835874bdd9723e6e285cfdfa /OpenSim/Region/ScriptEngine/Shared/Api
parentfixing warning in IRCBridgeModule and logging the exception cause now. (diff)
downloadopensim-SC-00791594ad4ed6d78bd6edbb2e02eaaf5c30c8ce.zip
opensim-SC-00791594ad4ed6d78bd6edbb2e02eaaf5c30c8ce.tar.gz
opensim-SC-00791594ad4ed6d78bd6edbb2e02eaaf5c30c8ce.tar.bz2
opensim-SC-00791594ad4ed6d78bd6edbb2e02eaaf5c30c8ce.tar.xz
Mantis#1739. Thank you kindly, Grumly57 for a patch that:
Implements X-SecondLife-* HTTP Headers for llHTTPRequest
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs18
1 files changed, 17 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 06a6086..507a132 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -6648,8 +6648,24 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6648 { 6648 {
6649 param.Add(o.ToString()); 6649 param.Add(o.ToString());
6650 } 6650 }
6651
6652 Dictionary<string, string> httpHeaders = new Dictionary<string, string>();
6653
6654 httpHeaders["X-SecondLife-Shard"] = "OpenSim";
6655 httpHeaders["X-SecondLife-Object-Name"] = m_host.Name;
6656 httpHeaders["X-SecondLife-Object-Key"] = m_itemID.ToString();
6657 httpHeaders["X-SecondLife-Region"] = World.RegionInfo.RegionName;
6658 httpHeaders["X-SecondLife-Local-Position"] = m_host.AbsolutePosition.ToString();
6659 httpHeaders["X-SecondLife-Local-Velocity"] = m_host.Velocity.ToString();
6660 httpHeaders["X-SecondLife-Local-Rotation"] = m_host.RotationOffset.ToString();
6661
6662 ScenePresence scenePresence = World.GetScenePresence(m_host.ObjectOwner);
6663 httpHeaders["X-SecondLife-Owner-Name"] = scenePresence == null ? string.Empty : scenePresence.Name;
6664
6665 httpHeaders["X-SecondLife-Owner-Key"] = m_host.ObjectOwner.ToString();
6666
6651 LLUUID reqID = httpScriptMod. 6667 LLUUID reqID = httpScriptMod.
6652 StartHttpRequest(m_localID, m_itemID, url, param, body); 6668 StartHttpRequest(m_localID, m_itemID, url, param, httpHeaders, body);
6653 6669
6654 if (reqID != LLUUID.Zero) 6670 if (reqID != LLUUID.Zero)
6655 return reqID.ToString(); 6671 return reqID.ToString();