//\r
// Copyright (C) Tim Coleman, 2002\r
//\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
\r
using System.Collections.Specialized;\r
using System.ComponentModel;\r
//\r
// Used by SoapHttpClientProtocol, use this to avoid creating a new Uri on each invocation.\r
//\r
- protected internal Uri uri;\r
+ internal Uri uri;\r
\r
//\r
// Points to the current request, so we can call Abort() on it\r
//\r
WebRequest current_request;\r
\r
+#if !TARGET_JVM\r
static HybridDictionary cache;\r
+#else\r
+ static HybridDictionary cache {\r
+ get {\r
+ return (HybridDictionary)AppDomain.CurrentDomain.GetData("WebClientProtocol.cache");\r
+ }\r
+ set {\r
+ AppDomain.CurrentDomain.SetData("WebClientProtocol.cache", value);\r
+ }\r
+ }\r
+#endif\r
#endregion\r
\r
#region Constructors\r
set { preAuthenticate = value; }\r
}\r
\r
- [DefaultValue ("")]\r
+ [DefaultValue (null)]\r
[RecommendedAsConfigurable (true)]\r
[WebServicesDescription ("The encoding to use for requests.")]\r
public Encoding RequestEncoding {\r
uri = new Uri (url);\r
}\r
}\r
+#if NET_2_0\r
+ [MonoTODO]\r
+ public bool UseDefaultCredentials {\r
+ get { throw new NotImplementedException (); }\r
+ set { throw new NotImplementedException (); }\r
+ }\r
+#endif\r
\r
#endregion // Properties\r
\r