Make previously hidden cookies available to code Thanks jhurlimanarthursv
parent
eb78ac343e
commit
4a992388e3
|
@ -33,6 +33,7 @@ using System.IO;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using System.Web;
|
||||||
using HttpServer;
|
using HttpServer;
|
||||||
using log4net;
|
using log4net;
|
||||||
|
|
||||||
|
@ -72,6 +73,18 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
}
|
}
|
||||||
private string _contentType;
|
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
|
public bool HasEntityBody
|
||||||
{
|
{
|
||||||
get { return _request.ContentLength != 0; }
|
get { return _request.ContentLength != 0; }
|
||||||
|
|
|
@ -70,6 +70,7 @@
|
||||||
<ReferencePath>../../../../bin/</ReferencePath>
|
<ReferencePath>../../../../bin/</ReferencePath>
|
||||||
<Reference name="System"/>
|
<Reference name="System"/>
|
||||||
<Reference name="System.Xml"/>
|
<Reference name="System.Xml"/>
|
||||||
|
<Reference name="System.Web"/>
|
||||||
<Reference name="OpenMetaverse.StructuredData.dll"/>
|
<Reference name="OpenMetaverse.StructuredData.dll"/>
|
||||||
<Reference name="OpenMetaverseTypes.dll"/>
|
<Reference name="OpenMetaverseTypes.dll"/>
|
||||||
<Reference name="XMLRPC.dll"/>
|
<Reference name="XMLRPC.dll"/>
|
||||||
|
|
Loading…
Reference in New Issue