diff --git a/OpenSim/Framework/Servers/HttpServer/OSHttpRequest.cs b/OpenSim/Framework/Servers/HttpServer/OSHttpRequest.cs index 6214563dd1..c53160fb1d 100644 --- a/OpenSim/Framework/Servers/HttpServer/OSHttpRequest.cs +++ b/OpenSim/Framework/Servers/HttpServer/OSHttpRequest.cs @@ -33,6 +33,7 @@ using System.IO; using System.Net; using System.Reflection; using System.Text; +using System.Web; using HttpServer; using log4net; @@ -72,6 +73,18 @@ namespace OpenSim.Framework.Servers.HttpServer } private string _contentType; + public HttpCookieCollection Cookies + { + get + { + RequestCookies cookies = _request.Cookies; + HttpCookieCollection httpCookies = new HttpCookieCollection(); + foreach (RequestCookie cookie in cookies) + httpCookies.Add(new HttpCookie(cookie.Name, cookie.Value)); + return httpCookies; + } + } + public bool HasEntityBody { get { return _request.ContentLength != 0; } diff --git a/prebuild.xml b/prebuild.xml index 6401ff019b..5e4416984b 100644 --- a/prebuild.xml +++ b/prebuild.xml @@ -70,6 +70,7 @@ ../../../../bin/ +