From 5ce296e08de8875da6feddd4a9edf4b16558009d Mon Sep 17 00:00:00 2001 From: Tom Date: Tue, 14 Dec 2010 09:14:34 -0800 Subject: Workaround to allow llHTTPRequest to POST data to Lighthttpd which doesn't support Expect: 100-Continue --- .../Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OpenSim/Region/CoreModules/Scripting/HttpRequest') diff --git a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs index d78931a..e4a2461 100644 --- a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs +++ b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs @@ -341,6 +341,10 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest try { Request = (HttpWebRequest) WebRequest.Create(Url); + + //This works around some buggy HTTP Servers like Lighttpd + Request.ServicePoint.Expect100Continue = false; + Request.Method = HttpMethod; Request.ContentType = HttpMIMEType; -- cgit v1.1