Commit Graph
39 Commits
Author SHA1 Message Date
Jeffrey Stedfast dbff4b9934 If #CONFIGURATION_DEP isn't defined, we still want to get a default proxy 2011-08-09 12:31:50 -04:00
Sebastien Pouliot a7ee25e84b Ensure the linker can eliminate the *RequestCreator code without extra instructions. 2011-07-20 08:28:42 -04:00
Jeffrey Stedfast 67e45d8ca4 Load the correct type for MacOSX (as opposed to iOS) 2011-07-06 12:06:12 -04:00
Jeffrey Stedfast 7715de7ad9 Implemented a shared way to do MacOSX detection in System.dll 2011-07-05 17:52:25 -04:00
Jeffrey Stedfast 057b426f7b Doh, do proper OSX detection 2011-07-05 17:00:58 -04:00
Jeffrey Stedfast 7bd517619a Use runtime detection to decide to use CoreFoundation.CFNetwork.GetDefaultProxy() 2011-07-05 16:31:47 -04:00
Jeffrey Stedfast 287a28b0fe On MonoTouch, call CoreFoundation.CFNetwork.GetDefaultProxy() to get the default proxy 2011-07-05 14:10:14 -04:00
Gonzalo Paniagua Javier 0705817178 Revert my last patch
Not only it didn't fix anything but it broke a test.
2010-09-17 10:53:06 -04:00
Gonzalo Paniagua Javier ca4b4816fc Fix typo. It has been there for 4 years.
Why on earth this wasn't found earlier? $20 reward to whoever gives a
	plausible explanation.
2010-09-16 13:13:56 -04:00
Jb Evain 9cb87907d7 Enable the System build for monodroid 2010-09-08 18:48:28 +02: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 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 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
Jb Evain 8bba669db0 fix horrible typo
svn path=/trunk/mcs/; revision=139298
2009-08-03 21:19:24 +00:00
Jb Evain f2a6f61bad use a 2.0 network stack for MONOTOUCH
svn path=/trunk/mcs/; revision=139255
2009-08-02 15:43:12 +00:00
Gonzalo Paniagua Javier 370451c2fe 2008-11-18 Gonzalo Paniagua Javier <[email protected]>
* HttpConnection.cs: remove CWL. When reusing, BeginReadRequest might
	throw if the client closes.
	* HttpListenerResponse.cs: close the connection for 1.0 clients.


svn path=/trunk/mcs/; revision=119225
2008-11-18 21:50:44 +00:00
Gonzalo Paniagua Javier 0e9ed5c489 2008-11-04 Gonzalo Paniagua Javier <[email protected]>
* WebRequest.cs: if the cache level is NoCacheNoStore, don't throw
	when setting the CachePolicy.


svn path=/trunk/mcs/; revision=117945
2008-11-04 22:08:51 +00:00
Marek Safar 225f1c9198 Warnings cleanup
svn path=/trunk/mcs/; revision=111790
2008-08-28 09:12:00 +00:00
Atsushi Eno 526b9e66b9 2007-11-13 Atsushi Enomoto <[email protected]>
* WebRequest.cs : added missing ImpersonationLevel (NIE).
	* SecurityProtocolType.cs : not [Serializable] in 2.0.
	* ServicePoint.cs : no GetHashCode() in 2.0.
	* WebRequestMethods.cs : fixed wrong STOU.
	* FileWebResponse.cs : no Dispose(true) in 2.0 API.


svn path=/trunk/mcs/; revision=89537
2007-11-13 10:06:27 +00:00
Gert Driesen ada0ea84ad Flush local changes.
svn path=/trunk/mcs/; revision=87519
2007-10-15 16:03:54 +00:00
Gert Driesen 397ba132a0 Remove commented code.
svn path=/trunk/mcs/; revision=87518
2007-10-15 15:48:09 +00:00
Gert Driesen b97ac2ba11 * WebRequestTest.cs: Fixed test for serialization ctor to match
1.0 profile change. Added trivial tests to argument null checks.
Added test for DefaultWebProxy. Fixed line endings.
* WebRequest.cs: Changed serialization ctor to throw NIE on 1.0
profile. Cache default proxy, but still allow it to be explicitly set 
to null.

svn path=/trunk/mcs/; revision=87517
2007-10-15 15:46:36 +00:00
Gonzalo Paniagua Javier 83729f4d65 2007-10-14 Gonzalo Paniagua Javier <[email protected]>
* WebRequest.cs: DefaultWebProxy allows a null value. Fixes bug #323668.


svn path=/trunk/mcs/; revision=87455
2007-10-14 06:19:30 +00:00
Noam Lampert bb7dfed5ae Remove redundant TARGET_JVMs
svn path=/trunk/mcs/; revision=80795
2007-06-26 16:46:13 +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
Konstantin Triger 7f1f1a0e6d use Invariant culture for string manipulations
svn path=/trunk/mcs/; revision=75436
2007-04-05 13:20:38 +00:00
Konstantin Triger eea91ddf6b TARGET_JVM limitations workarounds
svn path=/trunk/mcs/; revision=68950
2006-12-04 14:20:31 +00:00
Miguel de Icaza 7caa9e18e7 2006-11-27 Miguel de Icaza <[email protected]>
* WebRequest.cs: Instead of throwing NotImplemented exceptions,
	call GetMustImplement, that way we do not need the whitelist, and
	we save a handful of opcodes.

svn path=/trunk/mcs/; revision=68552
2006-11-28 04:14:21 +00:00
Michael Hutchinson d8f7e0066b 2006-11-02 Michael Hutchinson <[email protected]>
* WebRequest.cs: more closely follow MS behaviour: use system settings 
	  unless told otherwise, and respect app.config.


svn path=/trunk/mcs/; revision=67277
2006-11-02 16:25:14 +00:00
Gonzalo Paniagua Javier 4e351d8172 bootstrap fix
svn path=/trunk/mcs/; revision=67247
2006-11-01 21:27:38 +00:00
Gonzalo Paniagua Javier 079c9b0f30 2006-11-01 Michael Hutchinson <[email protected]>
* GlobalProxySelection.cs: Obsolete GlobalProxySelection under 2.0 
	  profile, and move code to new property WebRequest.DefaultWebProxy.
	* WebRequest.cs: Implement new 2.0 property DefaultWebProxy.
	  Add support for config option UseSystemDefault using simplistic
	  implementation of new 2.0 method GetSystemWebProxy ().


svn path=/trunk/mcs/; revision=67243
2006-11-01 20:50:41 +00:00
Atsushi Eno 187a797371 2006-05-09 Atsushi Enomoto <[email protected]>
* WebRequest.cs : if corresponding config section is
	  WebRequestModulesSection then use it.

	* WebRequestModulesSection.cs :
	  don't throw NotImpl in InitializeDefault().
	* WebRequestModuleElement.cs :
	  TypeTypeConverter -> TypeConverter and uncomment it.
	* WebRequestModuleElementCollection.cs :
	  element is WebRequestModuleElement in GetElementKey().

	Similarly no actual config change yet.


svn path=/trunk/mcs/; revision=60456
2006-05-09 17:24:59 +00:00
Sebastien Pouliot 5328aec212 2005-05-19 Sebastien Pouliot <[email protected]>
* WebRequest.cs: Throw NotImplementedException (not NotSupported
	Exception) for stuff that should have been abstract. No exception
	is thrown by the serialization constructor.


svn path=/trunk/mcs/; revision=44753
2005-05-19 15:03:14 +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
Nick Drochak b38d984aac 2003-08-14 Nick Drochak <[email protected]>
* WebRequest.cs: Check lower case string since that is what we will add.

svn path=/trunk/mcs/; revision=17326
2003-08-14 14:11:28 +00:00
Gonzalo Paniagua Javier 1b462e1ef9 2003-06-26 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs: close the socket and connection when disposing.
	* WebRequest.cs: removed setter for RequestUri. Allow non-public ctors
	when creating instances.

	* HttpWebRequest.cs:
	* HttpWebResponse.cs:
	* FileWebRequest.cs: support serialization.

	* FileWebResponse.cs: support serialization and fixed dispose checks.

	* FileWebRequestCreator.cs:
	* HttpRequestCreator.cs: added internal .ctor.

svn path=/trunk/mcs/; revision=15644
2003-06-26 02:03:38 +00:00
Gonzalo Paniagua Javier ca0ecfd1a2 2003-06-06 Gonzalo Paniagua Javier <[email protected]>
* list.unix: added files.

	* System.Net/FileWebRequestCreator.cs: splitted from WebRequest.
	* System.Net/HttpRequestCreator.cs: splitted fromWebRequest.
	* System.Net/WebRequest.cs: added methods that are used by the new
	configuration handler to set prefix/type name requests creators.

	* System.Net.Configuration/WebRequestModuleHandler.cs: handles
	system.net/webRequestModules configuration section.

svn path=/trunk/mcs/; revision=15160
2003-06-06 16:15:21 +00:00
Lawrence Pit 3576832989 finished WebRequest.cs
svn path=/trunk/mcs/; revision=4524
2002-05-11 09:33:16 +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