2005-06-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Wed, 22 Jun 2005 06:04:24 +0000 (06:04 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Wed, 22 Jun 2005 06:04:24 +0000 (06:04 -0000)
* HttpWebRequest.cs: MS implementation follows redirects for POST. Seems
to me that this is against 10.3.3 in RFC 2616, but may be the user
'authorization' to do this is implicit in AllowAutoRedirect...

svn path=/trunk/mcs/; revision=46345

mcs/class/System/System.Net/ChangeLog
mcs/class/System/System.Net/HttpWebRequest.cs

index 9631c36cea6dd5845d2a73ea259d8fa8ae08306e..530be5a0ee2185cb1da1c48b0224245fbbe06dad 100644 (file)
@@ -1,3 +1,9 @@
+2005-06-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpWebRequest.cs: MS implementation follows redirects for POST. Seems
+       to me that this is against 10.3.3 in RFC 2616, but may be the user
+       'authorization' to do this is implicit in AllowAutoRedirect...
+
 2005-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * WebConnection.cs: SslClientStream.BeginRead might not be asynchronous
index 109533d06a970f9c5646d7713b2916f0a08522d7..08ab755ec6cd36b376a4233fd9139a752922ef3a 100644 (file)
@@ -807,8 +807,10 @@ namespace System.Net
                        case HttpStatusCode.MovedPermanently: // 301
                        case HttpStatusCode.Redirect: // 302
                        case HttpStatusCode.TemporaryRedirect: // 307
+                               /* MS follows the redirect for POST too
                                if (method != "GET" && method != "HEAD") // 10.3
                                        return false;
+                               */
 
                                uriString = webResponse.Headers ["Location"];
                                break;