* HttpWebRequest_2_1.cs: Add new AllowAutoRedirect and UserAgent
properties for binary compatibility with WP7. As documented both
properties are not usable in SL4 (throws NIE) but their existance
helps writing portable code
* ClientAccessPolicyParser.cs: Fix regression (from a023b07a) found by
DRT #666. More test cases to be added into moonlight WebPolicies test
application
* System.Net/System.Net.Sockets/SocketException_2_1.cs:
* System.Net/System.Net/WebClient_2_1.cs:
* System.Net/System.Net/WebRequest_2_1.cs:
* System/System.Net.Sockets/Socket_2_1.cs:
* System/System.Net/Cookie.cs:
* System/System.Net/DnsEndPoint.cs:
* System/System.Net/EndPoint.cs:
* System/System.Net/IPAddress.cs:
* System/System.Net/IPEndPoint.cs:
* System/System.Net/SocketAddress.cs:
Remove all red ! from corcompare in System.Net.dll (Silverlight
4 profile) to make it easier to pinpoint other errors/warnings.
* System.Net.Policy/CrossDomainPolicyManager.cs: Use same socket family
as the endpoint when retrieving the policy. Also do not try to create a
policy out of an empty stream (avoid misleading exceptions in logs)
* System.Net/WebRequest_2_1.cs: (Create) Find the prefix that is the
closest match to the specified Uri and use it's associated creator.
(RegisterPrefix) We cannot register 'http[s]:' even if registering
'http[s]' is possible (but does not work as expected) as are the (fully)
valid 'http[s]:/[/]' values.
* System.Net.Policy/CrossDomainPolicyManager.cs: Use InternalHeaders,
instead of Headers, since we always use the browser stack to download
the security policies.
* System.Net/WebClient_2_1.cs: Throw a NotImplementedException from
ResponseHeaders if the response does not support them.
* System.Net/WebResponse_2_1.cs: Make Headers property smart to throw a
NotImplementedException if SupportsHeaders return false. Add a new
InternalHeaders property since the response headers are needed,
internally (e.g. policies), even if not exposed to the outside world.
* mcs/class/System.Net/System.Net.Policy/ClientAccessPolicy.cs: Do not
throw a NotSupportedException here since it regress some DRT (like 656).
The (hopefully) correct fix (for DRT3001) will be committed inside moon
* mcs/class/System.Net/System.Net/InternalWebRequestStreamWrapper.cs:
Ensure WebClient.WriteStreamClosedCallback is never called more than
once (even if the stream was closed by the caller). Supply the length
of the data that was written to the stream to WebClient.
* mcs/class/System.Net/System.Net/WebClient_2_1.cs: Keep an Uri of
BaseAddress handy since we'll need it later. Ensure OnWriteStreamClosed
is at least called once (inside finally). Emit UploadProgressChanged
(instead of Download*) when uploading.
* mcs/class/System.Net/System.Net/WebRequest_2_1.cs: Change text for
InvalidOperationException when the URI is not absolute (some MS tests
check for, case-sensitive, "URI").
* HttpWebRequest_2_1.cs: Avoid using AllKeys (unneeded allocations)
* WebClient_2_1.cs: Copy headers to WebRequest (some special cases are
now considered) then clear them. Expose SecurityException (unwrapped)
and closely match SL4 exceptions (including inner exceptions).
* WebHeaderCollection_2_1.cs: Add missing validations on header names
and values (from original WebHeaderCollection.cs + small fix)
* NoAccessPolicy.cs: Set default to SecurityException each time
IsAllowed is called since we share a single instance of this type
svn path=/trunk/mcs/; revision=160611
* BaseDomainPolicy.cs:
* ICrossDomainPolicy.cs:
* NoAccessPolicy.cs:
* PolicyDownloadPolicy.cs:
* SiteOfOriginPolicy.cs:
Allow throwing something else than a SecurityException
which is pretty rare but we got a DRT for it
svn path=/trunk/mcs/; revision=160586
* FlashCrossDomainPolicy.cs: Reverse conditions order on secure=true
since we're currently too severe. Fix DRT668
svn path=/trunk/mcs/; revision=157359
* WebHeaderCollection_2_1.cs: Hide the internal Dictionary and
provide methods to use it properly.
* HttpWebRequest_2_1.cs: Use internal Clear method
svn path=/trunk/mcs/; revision=157358
* CrossDomainPolicyManager.cs: Fix previous change since it
breaks several valid cases (e.g. text/*, text/xml; charset=utf-8)
and does not completely covers the application/xml case.
Avoid possible ArgumentException while adding policies since it
confuse the logs.
svn path=/trunk/mcs/; revision=155309
* CrossDomainPolicyManager.cs: make the contentType detection
look for /xml at the end, it's more reliable
(fixes olympics for moonlight)
svn path=/trunk/mcs/; revision=155283