diff options
author | Charles Krinke | 2008-07-14 13:51:54 +0000 |
---|---|---|
committer | Charles Krinke | 2008-07-14 13:51:54 +0000 |
commit | 00791594ad4ed6d78bd6edbb2e02eaaf5c30c8ce (patch) | |
tree | 17bf6ae0214a3b83835874bdd9723e6e285cfdfa /OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |
parent | fixing warning in IRCBridgeModule and logging the exception cause now. (diff) | |
download | opensim-SC_OLD-00791594ad4ed6d78bd6edbb2e02eaaf5c30c8ce.zip opensim-SC_OLD-00791594ad4ed6d78bd6edbb2e02eaaf5c30c8ce.tar.gz opensim-SC_OLD-00791594ad4ed6d78bd6edbb2e02eaaf5c30c8ce.tar.bz2 opensim-SC_OLD-00791594ad4ed6d78bd6edbb2e02eaaf5c30c8ce.tar.xz |
Mantis#1739. Thank you kindly, Grumly57 for a patch that:
Implements X-SecondLife-* HTTP Headers for llHTTPRequest
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 4106fbb..6eb8749 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -6868,8 +6868,24 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
6868 | { | 6868 | { |
6869 | param.Add(o.ToString()); | 6869 | param.Add(o.ToString()); |
6870 | } | 6870 | } |
6871 | |||
6872 | Dictionary<string, string> httpHeaders = new Dictionary<string, string>(); | ||
6873 | |||
6874 | httpHeaders["X-SecondLife-Shard"] = "OpenSim"; | ||
6875 | httpHeaders["X-SecondLife-Object-Name"] = m_host.Name; | ||
6876 | httpHeaders["X-SecondLife-Object-Key"] = m_itemID.ToString(); | ||
6877 | httpHeaders["X-SecondLife-Region"] = World.RegionInfo.RegionName; | ||
6878 | httpHeaders["X-SecondLife-Local-Position"] = m_host.AbsolutePosition.ToString(); | ||
6879 | httpHeaders["X-SecondLife-Local-Velocity"] = m_host.Velocity.ToString(); | ||
6880 | httpHeaders["X-SecondLife-Local-Rotation"] = m_host.RotationOffset.ToString(); | ||
6881 | |||
6882 | ScenePresence scenePresence = World.GetScenePresence(m_host.ObjectOwner); | ||
6883 | httpHeaders["X-SecondLife-Owner-Name"] = scenePresence == null ? string.Empty : scenePresence.Name; | ||
6884 | |||
6885 | httpHeaders["X-SecondLife-Owner-Key"] = m_host.ObjectOwner.ToString(); | ||
6886 | |||
6871 | LLUUID reqID = httpScriptMod. | 6887 | LLUUID reqID = httpScriptMod. |
6872 | StartHttpRequest(m_localID, m_itemID, url, param, body); | 6888 | StartHttpRequest(m_localID, m_itemID, url, param, httpHeaders, body); |
6873 | 6889 | ||
6874 | if (reqID != LLUUID.Zero) | 6890 | if (reqID != LLUUID.Zero) |
6875 | return reqID.ToString(); | 6891 | return reqID.ToString(); |