../../build/common/Locale.cs
../../build/common/MonoTODOAttribute.cs
DummySystemNet.cs
++System.Net/HttpWebRequest_2_1.cs
++System.Net/HttpWebResponse_2_1.cs
++System.Net/WebHeaderCollection_2_1.cs
++System.Net/WebRequest_2_1.cs
++System.Net/WebResponse_2_1.cs
../System/Assembly/AssemblyInfo.cs
../System/System.Net/AuthenticationSchemes.cs
../System/System.Net/AuthenticationSchemeSelector.cs
../System/System.Net/HttpStreamAsyncResult.cs
../System/System.Net/HttpUtility.cs
../System/System.Net/HttpVersion.cs
--../System/System.Net/HttpWebRequest_2_1.cs
--../System/System.Net/HttpWebResponse_2_1.cs
../System/System.Net/IAuthenticationModule.cs
../System/System.Net/ICredentialLookup.cs
../System/System.Net/ICredentialPolicy.cs
../System/System.Net/WebAsyncResult.cs
../System/System.Net/WebException.cs
../System/System.Net/WebExceptionStatus.cs
--../System/System.Net/WebHeaderCollection_2_1.cs
--../System/System.Net/WebRequest_2_1.cs
../System/System.Net/WebRequestMethods.cs
--../System/System.Net/WebResponse_2_1.cs
../System/System.Net/UploadDataCompletedEventArgs.cs
../System/System.Net/UploadFileCompletedEventArgs.cs
../System/System.Net/UploadFileCompletedEventHandler.cs
--- /dev/null
--- /dev/null
++2008-04-13 Jb Evain <jbevain@novell.com>
++
++ * *_2_1.cs: move the specific 2.1 System.Net code to the
++ assembly System.Net.
--- /dev/null
--- /dev/null
++//
++// System.Net.HttpWebRequest (for 2.1 profile)
++//
++// Authors:
++// Atsushi Enomoto <atsushi@ximian.com>
++// Jb Evain <jbevain@novell.com>
++//
++// (c) 2007 Novell, Inc. (http://www.novell.com)
++//
++
++//
++// 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.
++//
++
++#if NET_2_1
++
++using System;
++
++namespace System.Net {
++
++ public abstract class HttpWebRequest : WebRequest {
++
++ public abstract bool HaveResponse { get; }
++ }
++}
++
++#endif
--- /dev/null
--- /dev/null
++//
++// System.Net.HttpWebResponse (for 2.1 profile)
++//
++// Authors:
++// Atsushi Enomoto <atsushi@ximian.com>
++// Jb Evain <jbevain@novell.com>
++//
++// (c) 2007 Novell, Inc. (http://www.novell.com)
++//
++
++//
++// 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.
++//
++
++#if NET_2_1
++
++using System;
++
++namespace System.Net {
++
++ public abstract class HttpWebResponse : WebResponse {
++
++ public abstract string Method { get; }
++ public abstract HttpStatusCode StatusCode { get; }
++ public abstract string StatusDescription { get; }
++ }
++}
++
++#endif
--- /dev/null
--- /dev/null
++//
++// System.Net.WebHeaderCollection (for 2.1 profile)
++//
++// Authors:
++// Jb Evain <jbevain@novell.com>
++//
++// (c) 2007 Novell, Inc. (http://www.novell.com)
++//
++
++//
++// 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.
++//
++
++#if NET_2_1
++
++using System;
++using System.Collections.Generic;
++
++namespace System.Net {
++
++ public class WebHeaderCollection {
++
++ Dictionary<string, string> headers = new Dictionary<string, string> ();
++
++ public WebHeaderCollection ()
++ {
++ }
++
++ public int Count {
++ get { return headers.Count; }
++ }
++
++ public ICollection<string> Headers {
++ get { return new List<string> (headers.Keys); }
++ }
++
++ public string this [string header] {
++ get {
++ string value;
++ if (headers.TryGetValue (header, out value))
++ return value;
++
++ return string.Empty;
++ }
++ set { headers [header] = value; }
++ }
++
++ public string this [HttpRequestHeader header] {
++ get { return this [HttpRequestHeaderToString (header)]; }
++ set { this [HttpRequestHeaderToString (header)] = value; }
++ }
++
++ static string HttpResponseHeaderToString (HttpResponseHeader header)
++ {
++ switch (header) {
++ case HttpResponseHeader.CacheControl: return "cache-control";
++ case HttpResponseHeader.Connection: return "connection";
++ case HttpResponseHeader.Date: return "date";
++ case HttpResponseHeader.KeepAlive: return "keep-alive";
++ case HttpResponseHeader.Pragma: return "pragma";
++ case HttpResponseHeader.Trailer: return "trailer";
++ case HttpResponseHeader.TransferEncoding: return "transfer-encoding";
++ case HttpResponseHeader.Upgrade: return "upgrade";
++ case HttpResponseHeader.Via: return "via";
++ case HttpResponseHeader.Warning: return "warning";
++ case HttpResponseHeader.Allow: return "allow";
++ case HttpResponseHeader.ContentLength: return "content-length";
++ case HttpResponseHeader.ContentType: return "content-type";
++ case HttpResponseHeader.ContentEncoding: return "content-encoding";
++ case HttpResponseHeader.ContentLanguage: return "content-language";
++ case HttpResponseHeader.ContentLocation: return "content-location";
++ case HttpResponseHeader.ContentMd5: return "content-md5";
++ case HttpResponseHeader.ContentRange: return "content-range";
++ case HttpResponseHeader.Expires: return "expires";
++ case HttpResponseHeader.LastModified: return "last-modified";
++ case HttpResponseHeader.AcceptRanges: return "accept-ranges";
++ case HttpResponseHeader.Age: return "age";
++ case HttpResponseHeader.ETag: return "etag";
++ case HttpResponseHeader.Location: return "location";
++ case HttpResponseHeader.ProxyAuthenticate: return "proxy-authenticate";
++ case HttpResponseHeader.RetryAfter: return "retry-after";
++ case HttpResponseHeader.Server: return "server";
++ case HttpResponseHeader.SetCookie: return "set-cookie";
++ case HttpResponseHeader.Vary: return "vary";
++ case HttpResponseHeader.WwwAuthenticate: return "www-authenticate";
++ default: throw new ArgumentException ();
++ }
++ }
++
++ static string HttpRequestHeaderToString (HttpRequestHeader header)
++ {
++ switch (header) {
++ case HttpRequestHeader.CacheControl: return "cache-control";
++ case HttpRequestHeader.Connection: return "connection";
++ case HttpRequestHeader.Date: return "date";
++ case HttpRequestHeader.KeepAlive: return "keep-alive";
++ case HttpRequestHeader.Pragma: return "pragma";
++ case HttpRequestHeader.Trailer: return "trailer";
++ case HttpRequestHeader.TransferEncoding: return "transfer-encoding";
++ case HttpRequestHeader.Upgrade: return "upgrade";
++ case HttpRequestHeader.Via: return "via";
++ case HttpRequestHeader.Warning: return "warning";
++ case HttpRequestHeader.Allow: return "allow";
++ case HttpRequestHeader.ContentLength: return "content-length";
++ case HttpRequestHeader.ContentType: return "content-type";
++ case HttpRequestHeader.ContentEncoding: return "content-encoding";
++ case HttpRequestHeader.ContentLanguage: return "content-language";
++ case HttpRequestHeader.ContentLocation: return "content-location";
++ case HttpRequestHeader.ContentMd5: return "content-md5";
++ case HttpRequestHeader.ContentRange: return "content-range";
++ case HttpRequestHeader.Expires: return "expires";
++ case HttpRequestHeader.LastModified: return "last-modified";
++ case HttpRequestHeader.Accept: return "accept";
++ case HttpRequestHeader.AcceptCharset: return "accept-charset";
++ case HttpRequestHeader.AcceptEncoding: return "accept-encoding";
++ case HttpRequestHeader.AcceptLanguage: return "accept-language";
++ case HttpRequestHeader.Authorization: return "authorization";
++ case HttpRequestHeader.Cookie: return "cookie";
++ case HttpRequestHeader.Expect: return "expect";
++ case HttpRequestHeader.From: return "from";
++ case HttpRequestHeader.Host: return "host";
++ case HttpRequestHeader.IfMatch: return "if-match";
++ case HttpRequestHeader.IfModifiedSince: return "if-modified-since";
++ case HttpRequestHeader.IfNoneMatch: return "if-none-match";
++ case HttpRequestHeader.IfRange: return "if-range";
++ case HttpRequestHeader.IfUnmodifiedSince: return "if-unmodified-since";
++ case HttpRequestHeader.MaxForwards: return "max-forwards";
++ case HttpRequestHeader.ProxyAuthorization: return "proxy-authorization";
++ case HttpRequestHeader.Referer: return "referer";
++ case HttpRequestHeader.Range: return "range";
++ case HttpRequestHeader.Te: return "te";
++ case HttpRequestHeader.Translate: return "translate";
++ case HttpRequestHeader.UserAgent: return "user-agent";
++ default: throw new ArgumentException ();
++ }
++ }
++ }
++}
++
++#endif
--- /dev/null
--- /dev/null
++//
++// System.Net.WebRequest (for 2.1 profile)
++//
++// Authors:
++// Jb Evain <jbevain@novell.com>
++//
++// (c) 2008 Novell, Inc. (http://www.novell.com)
++//
++
++//
++// 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.
++//
++
++#if NET_2_1
++
++using System;
++using System.IO;
++
++namespace System.Net {
++
++ public abstract class WebRequest {
++
++ static Type browser_http_request;
++
++ public abstract string ContentType { get; set; }
++ public abstract WebHeaderCollection Headers { get; set; }
++ public abstract string Method { get; set; }
++ public abstract Uri RequestUri { get; }
++
++ protected WebRequest ()
++ {
++ }
++
++ public abstract void Abort();
++ public abstract IAsyncResult BeginGetRequestStream (AsyncCallback callback, object state);
++ public abstract IAsyncResult BeginGetResponse (AsyncCallback callback, object state);
++ public abstract Stream EndGetRequestStream (IAsyncResult asyncResult);
++ public abstract WebResponse EndGetResponse (IAsyncResult asyncResult);
++
++ public static WebRequest Create (Uri uri)
++ {
++ if (!uri.Scheme.StartsWith ("http"))
++ throw new NotSupportedException (string.Format ("Scheme {0} not supported", uri.Scheme));
++
++ return CreateBrowserHttpRequest (uri);
++ }
++
++ static WebRequest CreateBrowserHttpRequest (Uri uri)
++ {
++ if (browser_http_request == null)
++ browser_http_request = GetBrowserHttpFromMoonlight ();
++
++ return (WebRequest) Activator.CreateInstance (browser_http_request, new object [] { uri });
++ }
++
++ static Type GetBrowserHttpFromMoonlight ()
++ {
++ var type = Type.GetType ("System.Windows.Browser.Net.BrowserHttpWebRequest, Mono.Moonlight");
++ if (type == null)
++ throw new NotSupportedException ("Can not get BrowserHttpWebRequest");
++
++ return type;
++ }
++
++ public static bool RegisterPrefix (string prefix, IWebRequestCreate creator)
++ {
++ throw new NotSupportedException ();
++ }
++ }
++}
++
++#endif
--- /dev/null
--- /dev/null
++//
++// System.Net.HttpWebResponse (for 2.1 profile)
++//
++// Authors:
++// Jb Evain <jbevain@novell.com>
++//
++// (c) 2007 Novell, Inc. (http://www.novell.com)
++//
++
++//
++// 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.
++//
++
++#if NET_2_1
++
++using System;
++using System.IO;
++
++namespace System.Net {
++
++ public abstract class WebResponse : IDisposable {
++
++ public abstract long ContentLength { get; }
++ public abstract string ContentType { get; }
++ public abstract Uri ResponseUri { get; }
++
++ protected WebResponse ()
++ {
++ }
++
++ public abstract void Close ();
++ public abstract void Dispose (bool disposing);
++ public abstract Stream GetResponseStream ();
++
++ void IDisposable.Dispose ()
++ {
++ Dispose (true);
++ }
++ }
++}
++
++#endif
++2008-04-13 Jb Evain <jbevain@novell.com>
++
++ * *_2_1.cs: move the specific 2.1 System.Net code to the
++ assembly System.Net.
++
2008-04-13 Jb Evain <jbevain@novell.com>
* WebRequest_2_1.cs, WebResponse_2_1.cs: new files
+++ /dev/null
--//
--// System.Net.HttpWebRequest (for 2.1 profile)
--//
--// Authors:
--// Atsushi Enomoto <atsushi@ximian.com>
--// Jb Evain <jbevain@novell.com>
--//
--// (c) 2007 Novell, Inc. (http://www.novell.com)
--//
--
--//
--// 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.
--//
--
--#if NET_2_1
--
--using System;
--
--namespace System.Net {
--
-- public abstract class HttpWebRequest : WebRequest {
--
-- public abstract bool HaveResponse { get; }
-- }
--}
--
--#endif
+++ /dev/null
--//
--// System.Net.HttpWebResponse (for 2.1 profile)
--//
--// Authors:
--// Atsushi Enomoto <atsushi@ximian.com>
--// Jb Evain <jbevain@novell.com>
--//
--// (c) 2007 Novell, Inc. (http://www.novell.com)
--//
--
--//
--// 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.
--//
--
--#if NET_2_1
--
--using System;
--
--namespace System.Net {
--
-- public abstract class HttpWebResponse : WebResponse {
--
-- public abstract string Method { get; }
-- public abstract HttpStatusCode StatusCode { get; }
-- public abstract string StatusDescription { get; }
-- }
--}
--
--#endif
+++ /dev/null
--//
--// System.Net.WebHeaderCollection (for 2.1 profile)
--//
--// Authors:
--// Jb Evain <jbevain@novell.com>
--//
--// (c) 2007 Novell, Inc. (http://www.novell.com)
--//
--
--//
--// 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.
--//
--
--#if NET_2_1
--
--using System;
--using System.Collections.Generic;
--
--namespace System.Net {
--
-- public class WebHeaderCollection {
--
-- Dictionary<string, string> headers = new Dictionary<string, string> ();
--
-- public WebHeaderCollection ()
-- {
-- }
--
-- public int Count {
-- get { return headers.Count; }
-- }
--
-- public ICollection<string> Headers {
-- get { return new List<string> (headers.Keys); }
-- }
--
-- public string this [string header] {
-- get {
-- string value;
-- if (headers.TryGetValue (header, out value))
-- return value;
--
-- return string.Empty;
-- }
-- set { headers [header] = value; }
-- }
--
-- public string this [HttpRequestHeader header] {
-- get { return this [HttpRequestHeaderToString (header)]; }
-- set { this [HttpRequestHeaderToString (header)] = value; }
-- }
--
-- static string HttpResponseHeaderToString (HttpResponseHeader header)
-- {
-- switch (header) {
-- case HttpResponseHeader.CacheControl: return "cache-control";
-- case HttpResponseHeader.Connection: return "connection";
-- case HttpResponseHeader.Date: return "date";
-- case HttpResponseHeader.KeepAlive: return "keep-alive";
-- case HttpResponseHeader.Pragma: return "pragma";
-- case HttpResponseHeader.Trailer: return "trailer";
-- case HttpResponseHeader.TransferEncoding: return "transfer-encoding";
-- case HttpResponseHeader.Upgrade: return "upgrade";
-- case HttpResponseHeader.Via: return "via";
-- case HttpResponseHeader.Warning: return "warning";
-- case HttpResponseHeader.Allow: return "allow";
-- case HttpResponseHeader.ContentLength: return "content-length";
-- case HttpResponseHeader.ContentType: return "content-type";
-- case HttpResponseHeader.ContentEncoding: return "content-encoding";
-- case HttpResponseHeader.ContentLanguage: return "content-language";
-- case HttpResponseHeader.ContentLocation: return "content-location";
-- case HttpResponseHeader.ContentMd5: return "content-md5";
-- case HttpResponseHeader.ContentRange: return "content-range";
-- case HttpResponseHeader.Expires: return "expires";
-- case HttpResponseHeader.LastModified: return "last-modified";
-- case HttpResponseHeader.AcceptRanges: return "accept-ranges";
-- case HttpResponseHeader.Age: return "age";
-- case HttpResponseHeader.ETag: return "etag";
-- case HttpResponseHeader.Location: return "location";
-- case HttpResponseHeader.ProxyAuthenticate: return "proxy-authenticate";
-- case HttpResponseHeader.RetryAfter: return "retry-after";
-- case HttpResponseHeader.Server: return "server";
-- case HttpResponseHeader.SetCookie: return "set-cookie";
-- case HttpResponseHeader.Vary: return "vary";
-- case HttpResponseHeader.WwwAuthenticate: return "www-authenticate";
-- default: throw new ArgumentException ();
-- }
-- }
--
-- static string HttpRequestHeaderToString (HttpRequestHeader header)
-- {
-- switch (header) {
-- case HttpRequestHeader.CacheControl: return "cache-control";
-- case HttpRequestHeader.Connection: return "connection";
-- case HttpRequestHeader.Date: return "date";
-- case HttpRequestHeader.KeepAlive: return "keep-alive";
-- case HttpRequestHeader.Pragma: return "pragma";
-- case HttpRequestHeader.Trailer: return "trailer";
-- case HttpRequestHeader.TransferEncoding: return "transfer-encoding";
-- case HttpRequestHeader.Upgrade: return "upgrade";
-- case HttpRequestHeader.Via: return "via";
-- case HttpRequestHeader.Warning: return "warning";
-- case HttpRequestHeader.Allow: return "allow";
-- case HttpRequestHeader.ContentLength: return "content-length";
-- case HttpRequestHeader.ContentType: return "content-type";
-- case HttpRequestHeader.ContentEncoding: return "content-encoding";
-- case HttpRequestHeader.ContentLanguage: return "content-language";
-- case HttpRequestHeader.ContentLocation: return "content-location";
-- case HttpRequestHeader.ContentMd5: return "content-md5";
-- case HttpRequestHeader.ContentRange: return "content-range";
-- case HttpRequestHeader.Expires: return "expires";
-- case HttpRequestHeader.LastModified: return "last-modified";
-- case HttpRequestHeader.Accept: return "accept";
-- case HttpRequestHeader.AcceptCharset: return "accept-charset";
-- case HttpRequestHeader.AcceptEncoding: return "accept-encoding";
-- case HttpRequestHeader.AcceptLanguage: return "accept-language";
-- case HttpRequestHeader.Authorization: return "authorization";
-- case HttpRequestHeader.Cookie: return "cookie";
-- case HttpRequestHeader.Expect: return "expect";
-- case HttpRequestHeader.From: return "from";
-- case HttpRequestHeader.Host: return "host";
-- case HttpRequestHeader.IfMatch: return "if-match";
-- case HttpRequestHeader.IfModifiedSince: return "if-modified-since";
-- case HttpRequestHeader.IfNoneMatch: return "if-none-match";
-- case HttpRequestHeader.IfRange: return "if-range";
-- case HttpRequestHeader.IfUnmodifiedSince: return "if-unmodified-since";
-- case HttpRequestHeader.MaxForwards: return "max-forwards";
-- case HttpRequestHeader.ProxyAuthorization: return "proxy-authorization";
-- case HttpRequestHeader.Referer: return "referer";
-- case HttpRequestHeader.Range: return "range";
-- case HttpRequestHeader.Te: return "te";
-- case HttpRequestHeader.Translate: return "translate";
-- case HttpRequestHeader.UserAgent: return "user-agent";
-- default: throw new ArgumentException ();
-- }
-- }
-- }
--}
--
--#endif
+++ /dev/null
--//
--// System.Net.WebRequest (for 2.1 profile)
--//
--// Authors:
--// Jb Evain <jbevain@novell.com>
--//
--// (c) 2008 Novell, Inc. (http://www.novell.com)
--//
--
--//
--// 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.
--//
--
--#if NET_2_1
--
--using System;
--using System.IO;
--
--namespace System.Net {
--
-- public abstract class WebRequest {
--
-- static Type browser_http_request;
--
-- public abstract string ContentType { get; set; }
-- public abstract WebHeaderCollection Headers { get; set; }
-- public abstract string Method { get; set; }
-- public abstract Uri RequestUri { get; }
--
-- protected WebRequest ()
-- {
-- }
--
-- public abstract void Abort();
-- public abstract IAsyncResult BeginGetRequestStream (AsyncCallback callback, object state);
-- public abstract IAsyncResult BeginGetResponse (AsyncCallback callback, object state);
-- public abstract Stream EndGetRequestStream (IAsyncResult asyncResult);
-- public abstract WebResponse EndGetResponse (IAsyncResult asyncResult);
--
-- public static WebRequest Create (Uri uri)
-- {
-- if (!uri.Scheme.StartsWith ("http"))
-- throw new NotSupportedException (string.Format ("Scheme {0} not supported", uri.Scheme));
--
-- return CreateBrowserHttpRequest (uri);
-- }
--
-- static WebRequest CreateBrowserHttpRequest (Uri uri)
-- {
-- if (browser_http_request == null)
-- browser_http_request = GetBrowserHttpFromMoonlight ();
--
-- return (WebRequest) Activator.CreateInstance (browser_http_request, new object [] { uri });
-- }
--
-- static Type GetBrowserHttpFromMoonlight ()
-- {
-- var type = Type.GetType ("System.Windows.Browser.Net.BrowserHttpWebRequest, Mono.Moonlight");
-- if (type == null)
-- throw new NotSupportedException ("Can not get BrowserHttpWebRequest");
--
-- return type;
-- }
--
-- public static bool RegisterPrefix (string prefix, IWebRequestCreate creator)
-- {
-- throw new NotSupportedException ();
-- }
-- }
--}
--
--#endif
+++ /dev/null
--//
--// System.Net.HttpWebResponse (for 2.1 profile)
--//
--// Authors:
--// Jb Evain <jbevain@novell.com>
--//
--// (c) 2007 Novell, Inc. (http://www.novell.com)
--//
--
--//
--// 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.
--//
--
--#if NET_2_1
--
--using System;
--using System.IO;
--
--namespace System.Net {
--
-- public abstract class WebResponse : IDisposable {
--
-- public abstract long ContentLength { get; }
-- public abstract string ContentType { get; }
-- public abstract Uri ResponseUri { get; }
--
-- protected WebResponse ()
-- {
-- }
--
-- public abstract void Close ();
-- public abstract void Dispose (bool disposing);
-- public abstract Stream GetResponseStream ();
--
-- void IDisposable.Dispose ()
-- {
-- Dispose (true);
-- }
-- }
--}
--
--#endif