[Mono-devel-list] [PATCH] fix for ASP.NET GetServerName/GetLocalAddress/GetLocalPort/HttpRequest.Url

Gonzalo Paniagua Javier gonzalo at ximian.com
Mon Oct 13 01:45:44 EDT 2003

El lun, 13-10-2003 a las 02:31, David Waite escribió:
> The following two patches are against mcs and xsp. As far as I know, the 
> GetServerName/GetLocalAddress methods on the HttpWorkerRequest impls and 
> the HttpRequest.Url property now match the Microsoft behavior, being:
> * GetLocalAddress returns the string representation of the IP address 
> the client connected to (e.g.
> * GetLocalPort returns the port the client connected to (e.g. 8080), 
> always ignoring the 'Host' header
> * GetServerName returns the Host specified by the user agent if any (via 
> 'Host' header, sans any port specifier). If there is no Host specified, 
> it uses GetLocalAddress.
> * HttpRequest.Url should return a Uri based around the result of 
> GetServerName, rather than GetLocalAddress.


Please, go ahead and commit.



More information about the Mono-devel-list mailing list