mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Fixed weird XML/HTTP bugs
Can now update a sim profile at startup automatically! W00t! Untested neighbours code (for sim crossings) Didn't drink any red bull today :( Used liquid guarana extract + cola
This commit is contained in:
@@ -44,7 +44,8 @@ namespace OpenSim
|
||||
//we really want to keep any server connection code out of here and out of the code code
|
||||
// and put it in the server connection classes (those inheriting from IGridServer etc)
|
||||
string reqtext;
|
||||
reqtext = "<authkey>" + this.GridSendKey + "</authkey>";
|
||||
reqtext = "<Root>";
|
||||
reqtext += "<authkey>" + this.GridSendKey + "</authkey>";
|
||||
reqtext += "<sim>";
|
||||
reqtext += "<uuid>" + this.SimUUID.ToString() + "</uuid>";
|
||||
reqtext += "<regionname>" + this.RegionName + "</regionname>";
|
||||
@@ -54,6 +55,7 @@ namespace OpenSim
|
||||
reqtext += "<region_locy>" + this.RegionLocY.ToString() + "</region_locy>";
|
||||
reqtext += "<estate_id>1</estate_id>";
|
||||
reqtext += "</sim>";
|
||||
reqtext += "</Root>";
|
||||
|
||||
byte[] reqdata = (new System.Text.ASCIIEncoding()).GetBytes(reqtext);
|
||||
|
||||
@@ -67,7 +69,7 @@ namespace OpenSim
|
||||
stOut.Close();
|
||||
|
||||
WebResponse gridresp = GridSaveReq.GetResponse();
|
||||
StreamReader stIn = new StreamReader(gridresp.GetResponseStream());
|
||||
StreamReader stIn = new StreamReader(gridresp.GetResponseStream(), Encoding.ASCII);
|
||||
string GridResponse = stIn.ReadToEnd();
|
||||
stIn.Close();
|
||||
gridresp.Close();
|
||||
|
||||
Reference in New Issue
Block a user