Commit Graph
8 Commits
Author SHA1 Message Date
Miguel de Icaza a2339679bc [HttpListener] Only bind to the specified hosts (and support '*' as Any), fixes #17204, #10818 2014-02-12 12:08:10 -05:00
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04:00
Yeonwoon Jung 1874406ac0 Binding socket with specified IP address if possible.
HttpListener uses this class to manage endpoint listener. URI prefix usually looks like 'http://address:port/', with the specified URI, EndPointListener should bind IP address and port. But, without this change, EndPointManager passes IPAddress.Any instead of IP address given by URI prefix. This behavior is not only different with .NET class lib, but also could be security hole on server, which machine has multiple network interfaces combined public/private IP addresses. It always opens both public/private even if it is not intended.
2012-03-24 22:07:11 +09:00
Gonzalo Paniagua Javier 604d5faa0b More StringComparison.Ordinal
Use StringComparison.Ordinal when calling IndexOf to find the index of
	an ASCII string.
2010-10-31 17:23:18 -04:00
Gonzalo Paniagua Javier 44c7c6ec64 2009-06-17 Gonzalo Paniagua Javier <[email protected]>
* EndPointListener.cs: call CheckIfRemove() after removing a regular
	prefix. Fixes bug #513849.
	* EndPointManager.cs: make sure we use the right lock when one prefix
	of a collection fails to be added and we need to remove all of the
	prefixes.
	Clear the ip_to_endpoints hashtable if there are no more prefixes
	listening on that address.


svn path=/trunk/mcs/; revision=136320
2009-06-17 15:24:03 +00:00
Miguel de Icaza d97ed80f3b 2008-09-12 Miguel de Icaza <[email protected]>
* HttpListenerPrefixCollection.cs, EndPointListener.cs,
	HttpListener.cs, EndPointManager.cs, HttpConnection.cs: Remove
	generics support where necessary to allow this code to be reused
	in the 1.0 profile.

svn path=/trunk/mcs/; revision=112922
2008-09-12 23:59:52 +00:00
Sebastien Pouliot 7da033a75a Fix build as HttpListener now depends on X509Certificate2, which can't be build on the first time for 2.0... bla bla bla, and lot of other stuff depends on it
svn path=/trunk/mcs/; revision=69982
2006-12-23 04:34:08 +00:00
Gonzalo Paniagua Javier 3e700ee551 2005-11-17 Gonzalo Paniagua Javier <[email protected]>
* HttpListenerPrefixCollection.cs:
	* EndPointListener.cs:
	* HttpStreamAsyncResult.cs:
	* HttpListenerContext.cs:
	* HttpListenerBasicIdentity.cs:
	* AuthenticationSchemeSelector.cs:
	* HttpListener.cs:
	* WebHeaderCollection.cs:
	* ListenerPrefix.cs:
	* HttpListenerException.cs:
	* HttpResponseHeader.cs:
	* EndPointManager.cs:
	* HttpListenerRequest.cs:
	* HttpRequestHeader.cs:
	* BindIPEndPoint.cs:
	* ResponseStream.cs:
	* ChunkedInputStream.cs:
	* HttpStatusCode.cs:
	* ListenerAsyncResult.cs:
	* ChunkStream.cs:
	* HttpConnection.cs:
	* HttpUtility.cs:
	* HttpListenerResponse.cs:
	* RequestStream.cs: initial implementation of HttpListener. There are
	a few TODOs left (cookies, HTTPS) but almost everything else is in.


svn path=/trunk/mcs/; revision=53169
2005-11-17 12:03:25 +00:00