* 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