Commit Graph
66 Commits
Author SHA1 Message Date
Miguel de Icaza 0a13aae80e System/PCL: Implement HttpWebRequest.SupportsCookieContainer, WebRequest.CreateHttp; Fixes #18378 2014-03-13 22:53:49 -04:00
Miguel de Icaza f2565054d5 WebRequest: Provide stub ImpersonationLevel
The old implementation threw an exception requesting that the method be implemented
in a derived class, but the method is not virtual, so it could have never been
implemented.

Since Mono does not support this, at least we keep the token around and avoid
throwing.
2014-02-11 21:53:44 -05:00
Martin Baulig f59fa062fb [System]: WebRequest.GetSystemProxy(): Return custom proxy for monodroid.
On ICS and newer, we can use Java.Net.ProxySelector, which supports
per-access point proxy settings.  Fixes #12640.
2013-09-07 00:06:00 +02:00
Marek Safar b69d833414 Add *CachePolicy to mobile profile. Fixes #13466 2013-07-25 17:23:26 +02:00
Sebastien Pouliot 73a0051ead Hardcode the use of CFNetwork.GetDefaultProxy for iOS so WebProxy is not required (and can be removed by the linker) 2013-05-03 14:04:09 -04:00
Martin Baulig 879250e505 Misc PCL-related API fixes. 2013-03-04 12:40:21 -05:00
Marek Safar 5aeeb9cf7b Fix few warnings 2013-02-25 19:10:09 +01:00
Rodrigo Kumpera 1b92a4148c Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs. 2013-02-11 18:42:18 -05:00
Rodrigo Kumpera 5007c14d62 Kill the MOONLIGHT define in System. 2013-02-11 13:01:11 -05:00
Sebastien Pouliot 42daa4fd3a Add some stubs for methods required by the portable class library profiles 2012-05-10 08:45:13 -04:00
Jeffrey Stedfast 0fd6a5a564 WebRequest.GetDefaultWebProxy() must not assume the type of the system proxy. 2012-05-08 18:59:13 -04:00
Jeffrey Stedfast 197498d047 [System.Net.WebRequest] Implemented new and improved proxy support on Mac/iOS 2012-05-08 18:31:05 -04:00
Gonzalo Paniagua Javier 880bea0e62 Merge pull request #194 from QuickJack/master
Fixes two problems in WebClient/ WebRequest
2011-12-06 17:25:06 -08:00
Martin 1861a10177 Code formatting fixes. 2011-12-02 14:28:14 +01:00
Martin 485b40e9a2 WebRequest.GetSystemWebProxy() throws a NullReferenceException in case the proxy bypass list is empty or has not been configured for the system. This is true when running MonoDevelop 2.8.2 in Linux to debug an ASP.NET application. In this case, the debugger does not have access to the no_proxy environment variable. As a result, WebClient cannot be used in such an environment. 2011-11-29 14:06:19 +01:00
Alex Rønne Petersen 7ddaf56120 Merge pull request #186 from QuickJack/master
Fixes an Exception that is being thrown in Linux when the no_proxy environment variable is empty.
2011-10-28 07:43:19 -07:00
Atsushi Eno f04c82230a Fix NET_2_1 builds. 2011-10-26 00:29:28 +09:00
Martin 69b90e3312 Fixes an Exception that is beeing thrown in Linux when the no_proxy environment variable is empty. 2011-10-25 10:36:37 +03:00
Gonzalo Paniagua Javier 6e7b1a5012 Change check to detect Windows. 2011-10-23 02:34:38 -04:00
Martin 8ba66e9aa2 Update mcs/class/System/System.Net/WebRequest.cs 2011-10-17 10:08:06 +03:00
Martin 09c0349259 Provide proxy support for Windows; completes https://bugzilla.novell.com/show_bug.cgi?id=691291 2011-10-16 15:53:26 +03:00
Martin 0699bf99c8 Provide proxy support for Windows; completes https://bugzilla.novell.com/show_bug.cgi?id=691291 2011-10-16 15:50:50 +03:00
Martin 120aaadf09 respect BypassOnLocal attribute in GetSystemWebProxy(); completes https://bugzilla.novell.com/show_bug.cgi?id=691291 2011-10-16 14:17:10 +03:00
QuickJack cfff94d023 Edited mcs/class/System/System.Net/WebRequest.cs via GitHub 2011-10-11 14:39:40 +03:00
QuickJack 20cbf434f7 Edited mcs/class/System/System.Net/WebRequest.cs via GitHub 2011-10-11 14:27:32 +03:00
Marek Safar 1ce7b6016f Add async methods to System.Net 2011-10-07 10:11:29 +01:00
Marek Safar 166cfb1bd6 Remove few ifdefs 2011-10-07 10:11:29 +01:00
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