Commit Graph
36 Commits
Author SHA1 Message Date
Rodrigo Kumpera 5007c14d62 Kill the MOONLIGHT define in System. 2013-02-11 13:01:11 -05:00
Martin Baulig 63a38bdcd9 [#7258][Web]: Fix proxy authentication.
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.
2012-10-17 21:00:22 +02:00
Marek Safar 118782916a Implement System.Net.Http content upload 2012-05-01 11:00:39 +01:00
Marek Safar ae11667cff WebHeaderCollection fixes 2011-12-07 18:34:27 +00:00
Marek Safar c9b3000b68 Fix parameter names 2011-10-07 10:11:28 +01:00
Gonzalo Paniagua Javier a554acdc4f [HttpListener] Set each cookie in its own header
Send a Set-Cookie header per cookie instead of a Set-Cookie2 with
	multiple cookies.

	Fixes bug #667550.
2011-01-27 15:46:15 -05:00
Gonzalo Paniagua Javier fb13ef43ce [HttpWebRequest] Support 4.0 Date property. 2011-01-18 16:44:12 -05: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
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 ce35b7094a 2009-07-22 Gonzalo Paniagua Javier <[email protected]>
* WebHeaderCollection.cs: check the validity of the characters in the
	header names.


svn path=/trunk/mcs/; revision=138485
2009-07-23 02:57:21 +00:00
Gonzalo Paniagua Javier 874ad36781 Implement the 2.0 IsRestricted and add tests
svn path=/trunk/mcs/; revision=138472
2009-07-22 23:29:10 +00:00
Roei Erez 4c01c8ae72 adding TARGET_JVM on explicit interface implementation
svn path=/trunk/mcs/; revision=81322
2007-07-04 09:15:15 +00:00
Dick Porter fa277dafe1 2007-06-19 Dick Porter <[email protected]>
* AuthenticationManager.cs: 
	* IWebProxyScript.cs: 
	* Authorization.cs: 
	* Cookie.cs: 
	* CookieException.cs: 
	* CredentialCache.cs: 
	* FileWebRequest.cs: 
	* WebRequest.cs: 
	* FileWebResponse.cs: 
	* WebResponse.cs: 
	* FtpWebRequest.cs: 
	* HttpWebRequest.cs: 
	* DecompressionMethods.cs: 
	* HttpWebResponse.cs: 
	* ProtocolViolationException.cs: 
	* ServicePoint.cs: 
	* ServicePointManager.cs: 
	* WebClient.cs: 
	* WebException.cs: 
	* WebHeaderCollection.cs: 
	* WebProxy.cs: 
	* WebExceptionStatus.cs: 2.0 profile updates



svn path=/trunk/mcs/; revision=80152
2007-06-19 13:23:16 +00:00
Adar Wesley 831089227a 2007-05-16 Adar Wesley <[email protected]>
* System20.csproj: added classes to compilation set IOControlCode.cs,
	IPPacketInformation.cs

	* CookieCollection.cs: added missing method strongly typed CopyTo.

	* CredentialCache.cs: added missing methods Add, Remove, GetCredential

	* HttpWebRequest.jvm.cs: added missing ClientCertificates getter.

	* ServicePoint.cs: added missing method CloseConnectionGroup.

	* WebClient.cs: added missing methods OnDownloadProgressChanged,
	OnUploadProgressChanged, GetWebRequest, GetWebResponse

	* WebHeaderCollection.cs: added missing methods IsRestricted, Add,
	Remove, Set.

	* WebProxy.cs: added missing method GetObjectData.

	* Socket.jvm.cs: added missing methods EndDisconnect, IOControl,
	Send 2.0 overloads, Receive 2.0 overloads, ReceiveMessageFrom,
	BeginReceiveMessageFrom, EndReceiveMessageFrom, 
	EndAccept 2.0 overloads, BeginSend, EndSend, BeginReceive, 
	EndReceive, SendFile, BeginSendFile, EndSendFile, Disconnect,
	DuplicateAndClose

svn path=/trunk/mcs/; revision=77472
2007-05-16 12:03:13 +00:00
Miguel de Icaza 29fc1a6f37 2007-05-07 Miguel de Icaza <[email protected]>
Missing second part of the patch.
	

svn path=/trunk/mcs/; revision=76879
2007-05-08 00:29:01 +00:00
Miguel de Icaza 98fe081726 2007-05-07 Miguel de Icaza <[email protected]>
* 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
2007-05-07 23:11:54 +00:00
Konstantin Triger 01fc0f59f0 Use invariant culture for string comparing
svn path=/trunk/mcs/; revision=75914
2007-04-19 10:13:35 +00:00
Miguel de Icaza 4e79981d58 2007-04-17 Joel Reed <[email protected]>
* 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
2007-04-17 15:31:22 +00:00
Gert Driesen 51d19a431c * WebHeaderCollection.cs: Fixed binary serialization compatibility with MS.
* WebHeaderCollectionTest.cs: Added tests for binary serialization 
compatibility.

svn path=/trunk/mcs/; revision=71807
2007-01-28 13:16:24 +00:00
Miguel de Icaza 532e97f63f 2007-01-22 Miguel de Icaza <[email protected]>
* WebHeaderCollection.cs: Remove a handful of NotImplementedException's

svn path=/trunk/mcs/; revision=71461
2007-01-22 20:44:22 +00:00
Andrew Skiba d412658c9b add stubs for new 2.0 indexers
svn path=/trunk/mcs/; revision=67924
2006-11-15 14:34:35 +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
Gonzalo Paniagua Javier 7ce7ccda6c 2005-04-07 Gonzalo Paniagua Javier <[email protected]>
* 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
2005-04-07 20:03:43 +00:00
Gonzalo Paniagua Javier 4f2bab519c 2005-03-10 Gonzalo Paniagua Javier <[email protected]>
* 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
2005-03-10 23:29:30 +00:00
Gonzalo Paniagua Javier af4f13fae9 2005-03-01 Gonzalo Paniagua Javier <[email protected]>
* WebHeaderCollection.cs: handle commas inside quotes when splitting
	a multi-value header. Fixes bug #73151.


svn path=/trunk/mcs/; revision=41338
2005-03-01 22:32:37 +00:00
Jonathan Pryor 3aded9094a * WebHeaderCollection.cs: Fix GetValues(string) to split the values on
commas if the header is a Multi-Value header.  This matches
    MonoTests.System.Net.WebHeaderCollectionTest.

svn path=/trunk/mcs/; revision=39259
2005-01-20 16:33:51 +00:00
Gonzalo Paniagua Javier 3ca52666c9 2004-10-05 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: use RemoveAndAdd for headers multivalue headers.
	* WebHeaderCollection.cs: added RemoveAndAdd that behaves like the old
	SetInternal.

svn path=/trunk/mcs/; revision=34698
2004-10-05 01:53:40 +00:00
Gonzalo Paniagua Javier 5f80f81cd4 2004-08-11 Gonzalo Paniagua Javier <[email protected]>
* 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
2004-08-11 20:03:15 +00:00
Duncan Mak 24f5ef2c44 Add MIT license to System.dll
svn path=/trunk/mcs/; revision=30054
2004-06-21 18:02:11 +00:00
Gonzalo Paniagua Javier b24f2374e0 2004-03-24 Gonzalo Paniagua Javier <[email protected]>
* 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
2004-03-24 22:06:56 +00:00
Gonzalo Paniagua Javier 6873f63f25 2003-07-20 Gonzalo Paniagua Javier <[email protected]>
* 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
2003-07-20 11:29:09 +00:00
Gonzalo Paniagua Javier 0067ecca7b 2003-06-20 Gonzalo Paniagua Javier <[email protected]>
* WebHeaderCollection.cs: prevent duplication headers used niternally.

svn path=/trunk/mcs/; revision=15505
2003-06-20 11:35:53 +00:00
Gonzalo Paniagua Javier cc8432099d Reworked HttpWebRequest and related classes.
svn path=/trunk/mcs/; revision=15149
2003-06-06 06:57:36 +00:00
Lawrence Pit a0fa972a36 * HttpWebRequest.cs: properties implemented
* HttpWebResponse.cs: added
	* GlobalProxySelection.cs: implemented

svn path=/trunk/mcs/; revision=4553
2002-05-12 09:09:10 +00:00
Lawrence Pit 21897fd452 WebHeaderCollection implemented
svn path=/trunk/mcs/; revision=4531
2002-05-11 15:30:44 +00:00
Lawrence Pit c24932898e 2002-05-06 Lawrence Pit <[email protected]>
* WebRequest.cs: added
	* WebResponse.cs: implemented
	* WebException.cs: implemented
	* WebHeaderCollection.cs: added
	* HttpVersion.cs: implemented
	* HttpContinueDelegate.cs: added
	* IWebProxy.cs: added
	* IWebRequestCreate.cs: added
	* ICertificatePolicy.cs: added
	* ServicePoint.cs: stubbed
	* ServicePointManager.cs: stubbed
	* CookieContainer.cs: added
	* Authorization.cs: implemented

svn path=/trunk/mcs/; revision=4315
2002-05-05 18:37:57 +00:00