Commit Graph
560 Commits
Author SHA1 Message Date
Sebastien Pouliot 9c8cb87fe3 In .:
2010-07-21  Sebastien Pouliot  <[email protected]>

	* Makefile: Ensure SECURITY_DEP gets defined in our moonlight
	raw profile

In System.Net:
2010-07-21  Sebastien Pouliot  <[email protected]>

	* ServicePointManager.cs: Add special validation for Moonlight
	* WebConnection.cs: Change a define to NET_2_1

In System.Net.Security:
2010-07-21  Sebastien Pouliot  <[email protected]>

	* LocalCertificateSelectionCallback.cs:
	* SslStream.cs:
		Don't use alias in moonlight build (not needed and breaks
		compilation otherwise)


svn path=/trunk/mcs/; revision=160675
2010-07-21 13:36:35 +00:00
Gonzalo Paniagua Javier fc98a0f2bc 2010-07-16 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: ignore values set in CachePolicy and
	UseDefaultCredentials instead of throwing NIEX.


svn path=/trunk/mcs/; revision=160504
2010-07-16 19:02:59 +00:00
Gonzalo Paniagua Javier 1814e5864d 2010-07-14 Gonzalo Paniagua Javier <[email protected]>
* IPAddress.cs: allow values out of range as MS does.


svn path=/trunk/mcs/; revision=160379
2010-07-14 20:30:22 +00:00
Gonzalo Paniagua Javier cd45fc688f 2010-07-08 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: handle compressed streams when automatic decompression
	is turned on by a class derived from WebClient.


svn path=/trunk/mcs/; revision=160084
2010-07-08 21:04:45 +00:00
Marek Habersack 7ced145474 2010-07-01 Marek Habersack <[email protected]>
* WebRequest.cs: DefaultCachePolicy and CachePolicy return a
	NoCacheNoStore policy in all cases now. Workaround for bug #583934

svn path=/trunk/mcs/; revision=159758
2010-07-01 07:58:51 +00:00
Sebastien Pouliot 70064ced0b In System.Net:
2010-06-29  Sebastien Pouliot  <[email protected]>

	* ServicePointManager.cs: Remove NET_2_0 defines around 
	RemoteCertificateValidationCallback

In System.Net.Security:
2010-06-29  Sebastien Pouliot  <[email protected]>

	* RemoteCertificateValidationCallback.cs: Remove SECURITY_DEP use


svn path=/trunk/mcs/; revision=159663
2010-06-29 14:13:01 +00:00
Gonzalo Paniagua Javier 2ca7fdcc4c 2010-06-28 Gonzalo Paniagua Javier <[email protected]>
* IPAddress.cs: verify the last IPv4 digit too.
	Fixes bug #612135.


svn path=/trunk/mcs/; revision=159635
2010-06-28 22:15:34 +00:00
Gonzalo Paniagua Javier d40bb3a606 2010-06-16 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: DELETE allows an entity body.
	Fixes bug #614483.


svn path=/trunk/mcs/; revision=159036
2010-06-16 20:24:45 +00:00
Gonzalo Paniagua Javier f4ce05c1ce 2010-06-15 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: 307 does not change request method.


svn path=/trunk/mcs/; revision=158980
2010-06-15 21:58:30 +00:00
Jonathan Chambers 70578b3d74 2010-06-11 Jonathan Chambers <[email protected]>
* X509Certificate2Collection.cs: Add {} around default switch case.
	* HttpListenerRequest.cs: Assign default value to variable before using.

svn path=/trunk/mcs/; revision=158852
2010-06-12 01:07:30 +00:00
Gonzalo Paniagua Javier 32375f7136 2010-05-18 Gonzalo Paniagua Javier <[email protected]>
* FtpDataStream.cs:
	* FtpWebRequest.cs: properly close the data connection even when
	nothing is read from it. Refixes bug #598908.


svn path=/trunk/mcs/; revision=157506
2010-05-18 16:58:15 +00:00
Gonzalo Paniagua Javier 641218b6a4 2010-04-23 Gonzalo Paniagua Javier <[email protected]>
* FtpDataStream.cs:
	* FtpWebRequest.cs: use streams instead of sockets as soon as
	possible. Correctly initialize the control connection when SSL
	is used.
	Fixes bug #598908.


svn path=/trunk/mcs/; revision=156028
2010-04-23 19:37:26 +00:00
Gonzalo Paniagua Javier cf322b224a 2010-04-20 Gonzalo Paniagua Javier <[email protected]>
* ChunkStream.cs: ignore chunk extensions when reading the chunk
	size. Fixes bug #597556.


svn path=/trunk/mcs/; revision=155815
2010-04-20 15:54:28 +00:00
Gonzalo Paniagua Javier f0f2e24381 2010-04-15 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: set content length to -1 on redirect. Reset
	'FinishedReading' on redirects. Fixes bug #593596.


svn path=/trunk/mcs/; revision=155604
2010-04-16 02:16:12 +00:00
Gonzalo Paniagua Javier 610592a68d 2010-04-08 Gonzalo Paniagua Javier <[email protected]>
* ServicePointManager.cs: obtain the SubjectAltName extension the
	right way. Fixes bug #594110.


svn path=/trunk/mcs/; revision=155049
2010-04-08 14:30:27 +00:00
Gonzalo Paniagua Javier 6ad1d32e9e 2010-03-27 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: when PreAuthenticate is true, don't remove the
	existing authorization related headers until we know we have a
	replacement. Fixes bug #591633.


svn path=/trunk/mcs/; revision=154348
2010-03-27 16:27:20 +00:00
Gonzalo Paniagua Javier d31e514db3 2010-03-26 Gonzalo Paniagua Javier <[email protected]>
* ServicePointManager.cs: errors parsing the certificate don't prevent
	calling the callback now. Exceptions thrown parsing the certificate
	are printed to stderr in case they are library errors.


svn path=/trunk/mcs/; revision=154316
2010-03-26 20:13:23 +00:00
Gonzalo Paniagua Javier 154877147a 2010-03-21 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: fix handling of query string, whether it comes from
	the address used or is part of the QueryString.


svn path=/trunk/mcs/; revision=153960
2010-03-21 18:06:56 +00:00
Miguel de Icaza bd17ba1532 2010-03-20 Miguel de Icaza <[email protected]>
* WebConnection.cs: Drop pre-2.0 and pre-1.1 support, and remove
	warnings. 

svn path=/trunk/mcs/; revision=153946
2010-03-20 22:53:39 +00:00
Miguel de Icaza 3fc0cdfff0 2010-03-20 Miguel de Icaza <[email protected]>
* WebClient.cs: Drop the pre-2.0 support

svn path=/trunk/mcs/; revision=153944
2010-03-20 22:45:29 +00:00
Sebastien Pouliot 355a27b73d In System.Timers:
2010-03-19  Sebastien Pouliot  <[email protected]>

	* Timer.cs: Removed old NET_2_0 defines and added some new
	MOONLIGHT defines (needed for the client stack)

In System.Net:
2010-03-19  Sebastien Pouliot  <[email protected]>

	* AuthenticationManager.cs: Internal type for Moonlight.
	Add BasicClient, DigestClient, NtlmClient for NET_2_1 since
	this applies to both monotouch and moonlight (client stack).
	Removed unneeded NET_2_0 defines
	* CookieContainer.cs: For Moonlight it needs to be internal in 
	System.dll and public in System.Net.dll. Removed unneeded NET_2_0
	defines
	* HttpContinueDelegate.cs: Internal type for Moonlight.
	* HttpRequestCreator.cs: Remove a MOONLIGHT define
	* HttpStatusCode.cs: For Moonlight it needs to be internal in 
	System.dll and public in System.Net.dll
	* HttpWebRequest.cs: Internal type for Moonlight. Change S.Config
	to NET_2_1 defines (applies to both monotouch and moonlight).
	Removed unneeded NET_2_0 and NET_1_1 defines
	* HttpWebResponse.cs: Internal type for Moonlight. Removed 
	unneeded NET_2_0 defines
	* IAuthenticationModule.cs: Internal type for Moonlight.
	* ICertificatePolicy.cs: Internal type for Moonlight.
	* ICredentialPolicy.cs: Internal type for Moonlight. Removed 
	unneeded NET_2_0 defines
	* IWebRequestCreate.cs: For Moonlight it needs to be internal in 
	System.dll and public in System.Net.dll
	* ServicePoint.cs: Internal type for Moonlight. Change S.Config
	to NET_2_1 defines (applies to both monotouch and moonlight)
	* ServicePointManager.cs: Remove a MOONLIGHT define
	* WebException.cs: For Moonlight it needs to be internal in 
	System.dll and public in System.Net.dll. Removed unneeded NET_2_0
	defines
	* WebHeaderCollection.cs: Internal type for Moonlight. Removed 
	unneeded NET_2_0 defines
	* WebRequest.cs: Internal type for Moonlight. Change S.Config
	to NET_2_1 defines (applies to both monotouch and moonlight)
	* WebResponse.cs: Internal type for Moonlight. Removed unneeded
	NET_2_0 defines

In System.Net.Sockets:
2010-03-19  Sebastien Pouliot  <[email protected]>

	* Socket.cs: Remove some NET_2_0 defines (using) and add a few
	MOONLIGHT defines needed to reuse Socket in the client http stack
	* Socket_2_1.cs: Remove some MOONLIGHT defines
	* SocketAsyncEventArgs.cs: For Moonlight check policy if outside
	System.dll (the client stack use sockets with it's own web 
	xdomain policy)

In System:
2010-03-19  Sebastien Pouliot  <[email protected]>

	* Uri.cs: Remove some MOONLIGHT defines

In .:
2010-03-19  Sebastien Pouliot  <[email protected]>

	* moonlight_*_System.dll.sources: Bring extra types so we can
	build a full, managed, internal HTTP stack to be reused for SL3+
	* Makefile: Add a INSIDE_SYSTEM define when compiling System.dll
	to makes it possible to rebuild the same types in System.Net.dll


svn path=/trunk/mcs/; revision=153916
2010-03-19 19:01:31 +00:00
Gonzalo Paniagua Javier 9a1d4113e1 2010-03-18 Gonzalo Paniagua Javier <[email protected]>
* FtpWebResponse.cs:
	* FtpWebRequest.cs: for non-data operations, make sure we send the
	QUIT command upon completion when KeepAlive is false.
	Fixes bug #589305.


svn path=/trunk/mcs/; revision=153825
2010-03-18 11:59:29 +00:00
Jb Evain ba61ae505e use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153655
2010-03-16 12:07:46 +00:00
Gonzalo Paniagua Javier e7528a2e37 Moved chain building and validation from Mono.Security to System
to better support the 2.0 validation callback.


svn path=/trunk/mcs/; revision=153443
2010-03-11 06:02:08 +00:00
Gonzalo Paniagua Javier 8df3b9fd32 2010-03-09 Gonzalo Paniagua Javier <[email protected]>
* HttpConnection.cs: set the right position when a CR is found.
	Fixes bug #577891.


svn path=/trunk/mcs/; revision=153309
2010-03-09 07:45:32 +00:00
Gonzalo Paniagua Javier cddd78ded6 2010-03-09 Gonzalo Paniagua Javier <[email protected]>
* HttpListener.cs:
	* HttpListenerRequest.cs:
	* ListenerAsyncResult.cs:
	* HttpConnection.cs: make sure there is no pending input when reusing
	the connection.


svn path=/trunk/mcs/; revision=153300
2010-03-09 06:05:10 +00:00
Gonzalo Paniagua Javier 66e45946fd 2010-03-08 Gonzalo Paniagua Javier <[email protected]>
* HttpListenerContext.cs: split the auth header in 2 parts.
	* HttpListener.cs: backported SelectAuthenticationScheme and
	added new InternalEndGetContext used for connections that require
	authentication.
	* ListenerAsyncResult.cs: allow this object to be just a forwarder
	when nesting connections for authentication purposes.
	Fixes bug #585455.


svn path=/trunk/mcs/; revision=153288
2010-03-08 21:55:46 +00:00
Gonzalo Paniagua Javier cff198e18c 2010-03-06 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: fix for UploadStringAsync(). Closes bug #577818.
	Patch by Atsushi.


svn path=/trunk/mcs/; revision=153180
2010-03-06 16:30:33 +00:00
Atsushi Eno 1377ce8177 2010-03-04 Atsushi Enomoto <[email protected]>
* HttpListenerContext.cs : WWW-Authenticate header should not be
	  limited to Basic.


svn path=/trunk/mcs/; revision=153014
2010-03-04 13:27:31 +00:00
Atsushi Eno 8d7fd24d5c 2010-03-04 Atsushi Enomoto <[email protected]>
* HttpListenerContext.cs : The header line here is already trimmed
	  "Authorization:" , so do not try to remove it.


svn path=/trunk/mcs/; revision=153012
2010-03-04 12:48:31 +00:00
Atsushi Eno cb3cf43828 2010-03-04 Atsushi Enomoto <[email protected]>
* HttpListener.cs, ListenerAsyncResult.cs : fix authentication
	  scheme selection mismatch.


svn path=/trunk/mcs/; revision=153011
2010-03-04 12:12:05 +00:00
Atsushi Eno f334e6dced 2010-03-03 Atsushi Enomoto <[email protected]>
* HttpListenerContext.cs, HttpListener.cs :
	  support AuthenticationSchemeSelectorDelegate.


svn path=/trunk/mcs/; revision=152922
2010-03-03 12:38:19 +00:00
Miguel de Icaza 2ac437cdfc 2010-03-01 Miguel de Icaza <[email protected]>
* WebHeaderCollection.cs: Apply 2 year old patch from Yves Bastide that fixes the keys
        casing in the collection;   Fixes 325491


svn path=/trunk/mcs/; revision=152734
2010-03-01 19:09:20 +00:00
Gonzalo Paniagua Javier 5c20ab97e6 2010-03-01 Gonzalo Paniagua Javier <[email protected]>
* System.Net/WebConnection.cs: attach a validation callback to the new
	event in Mono.Security.
	* System.Net/ServicePointManager.cs: added a new ValidationHelper
	class that takes care of building the certificate chain and perform
	all the check that were done in Mono.Security before. This way the 2.0
	server certificate validation callback can get all the data it needs.
	* System.Net.Security/SslStream.cs: don't do anything if a chain
	element has no error.

	Fixes bug #584050.

svn path=/trunk/mcs/; revision=152654
2010-03-01 09:01:14 +00:00
Mike Kestner a3126ce34c 2010-01-29 Mike Kestner <[email protected]>
* System.dll.sources: add System.Net/WebUtility.cs.
	* System_test.dll.sources: add WebUtilityTest.cs to tests.

svn path=/trunk/mcs/; revision=150571
2010-01-29 20:44:06 +00:00
Carlos Alberto Cortez ffa7bf81b0 2010-01-21 Carlos Alberto Cortez <[email protected]>
* IPEndPoint.cs: When throwing an ArgumentException in Create()
	because of a mismatch in the address family, use a more informative
	message. Patch by Juho Vähä-Herttu<[email protected]>.
	Fixes #505105.


svn path=/trunk/mcs/; revision=150031
2010-01-21 23:43:48 +00:00
Sebastien Pouliot 1cc8e885d5 In Test/System.Net:
2010-01-21  Sebastien Pouliot  <[email protected]>

	* CookieContainerTest.cs: Additional test cases from Tom Philpot

In System.Net:
2010-01-21  Sebastien Pouliot  <[email protected]>

	* CookieContainer.cs: Fix to cloning and expiration. Patch
	by Tom Philpot <[email protected]>


svn path=/trunk/mcs/; revision=149976
2010-01-21 15:02:51 +00:00
Gonzalo Paniagua Javier 544931f4aa 2010-01-13 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: when the server returns several different
	authentication methods, pick the one that works.
	Fixes bug #562043.


svn path=/trunk/mcs/; revision=149500
2010-01-13 23:22:38 +00:00
Sebastien Pouliot 7b3d84254a In Test/System.Net:
2010-01-12  Sebastien Pouliot  <[email protected]>

	* NetworkCredentialTest.cs: New. Unit tests.

In System.Net:
2010-01-12  Sebastien Pouliot  <[email protected]>

	* NetworkCredential.cs: Fix properties to never return null.

In .:
2010-01-12  Sebastien Pouliot  <[email protected]>

	* System_test.dll.sources: Add NetworkCredentialTest.cs to the tests


svn path=/trunk/mcs/; revision=149401
2010-01-12 13:07:44 +00:00
Sebastien Pouliot 4a1a02cb04 In Test/System.Net:
2009-12-24  Sebastien Pouliot  <[email protected]>

	* CookieContainerTest.cs: Split many tests into smaller test 
	cases. Add test cases for DefaultPerDomainCookieLimit and
	DefaultCookieLimit. Remove all [Category ("NotWorking")] since
	everything works now.

In System.Net:
2009-12-24  Sebastien Pouliot  <[email protected]>

	* Cookie.cs: Re-work ToString to be useable in more cases. Fix
	some issues found by Gendarme.
	* CookieContainer.cs: Fix all NonWorking (and new) unit tests.
	Implement removing oldest cookies when limits are reached.
	* CookieCollection.cs: Move to generics internally. Fix sort to 
	be closer to MS implementation (but still not 100% identical).
	Fix some issues found by Gendarme.


svn path=/trunk/mcs/; revision=148891
2009-12-24 15:24:13 +00:00
Gonzalo Paniagua Javier baa3d5ff39 2009-12-21 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionGroup.cs:
	* ServicePoint.cs: implemented CloseConnectionGroup().


svn path=/trunk/mcs/; revision=148813
2009-12-21 17:12:57 +00:00
Sebastien Pouliot f2a2bf9ffb move DnsEndPoint to ease 4.0
svn path=/trunk/mcs/; revision=147700
2009-12-04 20:16:55 +00:00
Sebastien Pouliot 67c128cf74 2009-11-30 Sebastien Pouliot <[email protected]>
* CookieCollection.cs: Seal inner CookieCollectionPathComparer
	* IPAddress.cs: Avoid multiple casts in Equals
	* SocketAddress.cs: Avoid multiple casts in Equals
	[Found using Gendarme]


svn path=/trunk/mcs/; revision=147163
2009-12-01 02:07:06 +00:00
Alexandre Gomes 195ead9481 2009-10-23 Alexandre Gomes <[email protected]>
* Test/System.Net/WebClientTest.cs:
	* System.Net/WebClient.cs: Fixed GetWebRequest overriding problems, bug: 
	  https://bugzilla.novell.com/show_bug.cgi?id=549580


svn path=/trunk/mcs/; revision=144753
2009-10-23 18:26:49 +00:00
Gonzalo Paniagua Javier eafc6c8b08 2009-10-17 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: add 3 missing DoCallback() calls in
	EndRead/EndWrite.


svn path=/trunk/mcs/; revision=144315
2009-10-18 02:09:20 +00:00
Gonzalo Paniagua Javier 3f431288b4 2009-09-29 Gonzalo Paniagua Javier <[email protected]>
* EndPointListener.cs: fix matching a listener in presence of a query
	string or anchor.


svn path=/trunk/mcs/; revision=142900
2009-09-29 17:16:12 +00:00
Gonzalo Paniagua Javier f512a21cb8 2009-09-15 Gonzalo Paniagua Javier <[email protected]>
* HttpListenerRequest.cs: add the right status code.
	* HttpConnection.cs: exception might come from more places when
	reading the input. Catch all of them.


svn path=/trunk/mcs/; revision=142004
2009-09-16 01:27:36 +00:00
Gonzalo Paniagua Javier 6fa547ff4f 2009-09-15 Gonzalo Paniagua Javier <[email protected]>
* System.Net.Configuration/DefaultProxyHandler.cs:
	* System.Net/WebRequest.cs: handle upper and lowercase HTTP_PROXY and
	the Any address.
	Fixes bug #537283.


svn path=/trunk/mcs/; revision=141981
2009-09-15 18:47:01 +00:00
Gonzalo Paniagua Javier 3d39a08751 2009-09-04 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs: if the request has already finished reading, don't
	throw ObjectDisposedException here, just return as if nothing
	happened. Fixes bug #312968.


svn path=/trunk/mcs/; revision=141346
2009-09-04 17:35:08 +00:00
Gonzalo Paniagua Javier 94659b81ae 2009-08-29 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs: HEAD response does not have a body even if the
	response is an error. Fixes buf #535102.


svn path=/trunk/mcs/; revision=140923
2009-08-29 21:09:20 +00:00