Add internal WebHeaderCollection.GetValues_internal() which lets
you disable splitting the results on commas.
We may get something like
Proxy-Authenticate: Digest realm="MyRealm", nonce="le1+UCAk1gLAdQAA",
qop="auth", stale=false, NTLM
from the server, which needs to be split into two headers.
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
* 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
* WebHeaderCollection.cs: To be compatible with older versions of
Mono that might have serialized this in a different format, catch
the potential exception, and try the old name.
This should become a practice whenever we fix serialization in the
future.
This is for #81467
svn path=/trunk/mcs/; revision=76877
* WebHeaderCollection.cs: www-authenticate should be multivalue.
This fixes a bug related to RFC 2608 which says in section
"15.2 Offering a Choice of Authentication Schemes"
An HTTP/1.1 server may return multiple challenges with a 401
(Authenticate) response, and each challenge may use a different
scheme. The order of the challenges returned to the user agent
is in
the order that the server would prefer they be chosen. The
server
should order its challenges with the "most secure"
authentication
scheme first. A user agent should choose as the challenge to be
made
to the user the first one that the user agent understands.
Before this change, mono was choosing whatever was sent last,
which was the most insecure authentication option.
svn path=/trunk/mcs/; revision=75828
* WebHeaderCollection.cs: added if-modified-since to the list of
restricted headers.
* ServicePoint.cs: use a field object when locking.
svn path=/trunk/mcs/; revision=42651
* HttpWebResponse.cs: moved cookie parsing into its own class.
* WebHeaderCollection.cs: remove (probably bogus) GetMultipleValues
call.
* HttpWebRequest.cs: don't let exception raised in the ctor of
HttpWebResponse vanish.
Fixes bug #73275.
svn path=/trunk/mcs/; revision=41670
* HttpWebRequest.cs: use RemoveAndAdd for headers multivalue headers.
* WebHeaderCollection.cs: added RemoveAndAdd that behaves like the old
SetInternal.
svn path=/trunk/mcs/; revision=34698
* HttpWebResponse.cs: set-cookie and set-cookie2 can be present more
than once and have multiple values. Don't rely on string.split when
parsing cookie values.
* WebHeaderCollection.cs: same thing for set-cookie and set-cookie2.
Fixed GetValues (it was splitting values that contained a comma) and
changed SetInternal to handle multi-value headers.
Fixes bug #62744.
svn path=/trunk/mcs/; revision=32235
* HttpWebRequest.cs: added the exception status to the error message.
* WebConnection.cs: add headers using SetInternal instead of Add to
bypass header name validation. Fixes bug #55994.
* WebHeaderCollection.cs: added SetInternal (string header).
svn path=/trunk/mcs/; revision=24549
* ChunkStream.cs:
(WantMore): true if we've not received the last chunk yet. Fixes
bug #45463. Thanks to Miguel for tracking this down and providing a
test case.
* WebConnection.cs: removed bogus ^M's.
* WebHeaderCollection.cs: provide more info when the header or value is
wrong.
svn path=/trunk/mcs/; revision=16441