aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGridServices.GridServer
diff options
context:
space:
mode:
authorgareth2007-04-06 13:46:26 +0000
committergareth2007-04-06 13:46:26 +0000
commit85e3231c612d380e146c288b8ef73318e10b97b5 (patch)
tree180ead94dd5f50c4fb802795e45879e8214260dc /OpenGridServices.GridServer
parentvery very few changes, but just commiting so that svn it upto date with my lo... (diff)
downloadopensim-SC_OLD-85e3231c612d380e146c288b8ef73318e10b97b5.zip
opensim-SC_OLD-85e3231c612d380e146c288b8ef73318e10b97b5.tar.gz
opensim-SC_OLD-85e3231c612d380e146c288b8ef73318e10b97b5.tar.bz2
opensim-SC_OLD-85e3231c612d380e146c288b8ef73318e10b97b5.tar.xz
Began adding POST handler for /sims REST stuff
Diffstat (limited to '')
-rw-r--r--OpenGridServices.GridServer/GridHttp.cs13
1 files changed, 10 insertions, 3 deletions
diff --git a/OpenGridServices.GridServer/GridHttp.cs b/OpenGridServices.GridServer/GridHttp.cs
index 0986061..4bc9ef0 100644
--- a/OpenGridServices.GridServer/GridHttp.cs
+++ b/OpenGridServices.GridServer/GridHttp.cs
@@ -33,6 +33,7 @@ using Nwc.XmlRpc;
33using System.Threading; 33using System.Threading;
34using System.Text.RegularExpressions; 34using System.Text.RegularExpressions;
35using System.Net; 35using System.Net;
36using System.Xml;
36using System.IO; 37using System.IO;
37using System.Collections; 38using System.Collections;
38using System.Collections.Generic; 39using System.Collections.Generic;
@@ -161,13 +162,19 @@ namespace OpenGridServices.GridServer
161 respstring+="</sim>"; 162 respstring+="</sim>";
162 break; 163 break;
163 case "POST": 164 case "POST":
165 XmlDocument doc = new XmlDocument();
166 doc.LoadXml(requestBody);
167 XmlNode authkeynode = doc.FirstChild;
168 if (authkeynode.Name != "authkey")
169 respstring = "<error>bad XML - expected authkey tag</error>";
170 XmlNode simnode = doc.ChildNodes[1];
171 if (simnode.Name != "sim")
172 respstring = "<error>bad XML - expected sim tag</error>";
173
164 break; 174 break;
165 } 175 }
166 } 176 }
167 break; 177 break;
168 case "highestuuid":
169
170 break;
171 } 178 }
172 return ""; 179 return "";
173 180