[Mono-list] Request.IsSecureConnection & Request.Url.AbsoluteUri strange behavior
Igor Georgiev
gory@alphasoft-bg.com
Thu, 15 Jul 2004 16:27:38 +0300
Request.IsSecureConnection always return FALSE !!!
public sealed class HttpRequest {
.........
private HttpWorkerRequest _WorkerRequest;
.........
public bool IsSecureConnection {
get {
if (null != _WorkerRequest) {
return _WorkerRequest.IsSecure();
}
return false;
}
}
public abstract class HttpWorkerRequest : IHttpMapPath
{
........
public virtual bool IsSecure ()
{
return false; !!!!!!!!!!!!!!
}
.................
this also affect GetProtocol () -- alway return "http" !!!!!!!!!!!!
public virtual string GetProtocol ()
{
return (IsSecure ()) ? "https" : "http";
}
----------------------------------------------------------------------------
-------------------
Also Request.Url.AbsoluteUri have different behavior in .NET and mono
.NET -> https://localhost/login.aspx
mono -> http://localhost:443/login.aspx
in my opinion .NET implementation correct
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.720 / Virus Database: 476 - Release Date: 14.07.2004