aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/Scripting
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs b/OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs
index e0d5972..054b6fc 100644
--- a/OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs
+++ b/OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs
@@ -314,6 +314,16 @@ namespace OpenSim.Region.Environment.Modules.Scripting.HttpRequest
314 request.Method = httpMethod; 314 request.Method = httpMethod;
315 request.ContentType = httpMIMEType; 315 request.ContentType = httpMIMEType;
316 316
317 // Encode outbound data
318 if (outbound_body.Length > 0) {
319 byte[] data = Encoding.UTF8.GetBytes(outbound_body);
320
321 request.ContentLength = data.Length;
322 Stream bstream = request.GetRequestStream();
323 bstream.Write(data, 0, data.Length);
324 bstream.Close();
325 }
326
317 request.Timeout = httpTimeout; 327 request.Timeout = httpTimeout;
318 // execute the request 328 // execute the request
319 response = (HttpWebResponse) 329 response = (HttpWebResponse)
@@ -362,4 +372,4 @@ namespace OpenSim.Region.Environment.Modules.Scripting.HttpRequest
362 } 372 }
363 } 373 }
364 } 374 }
365} \ No newline at end of file 375}