Author: gonzalo
Date: 2005-06-22 02:04:24 -0400 (Wed, 22 Jun 2005)
New Revision: 46345

Modified:
   trunk/mcs/class/System/System.Net/ChangeLog
   trunk/mcs/class/System/System.Net/HttpWebRequest.cs
Log:
2005-06-22 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * 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...



Modified: trunk/mcs/class/System/System.Net/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net/ChangeLog 2005-06-22 05:59:51 UTC (rev 
46344)
+++ trunk/mcs/class/System/System.Net/ChangeLog 2005-06-22 06:04:24 UTC (rev 
46345)
@@ -1,3 +1,9 @@
+2005-06-22 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * 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 <[EMAIL PROTECTED]>
 
        * WebConnection.cs: SslClientStream.BeginRead might not be asynchronous

Modified: trunk/mcs/class/System/System.Net/HttpWebRequest.cs
===================================================================
--- trunk/mcs/class/System/System.Net/HttpWebRequest.cs 2005-06-22 05:59:51 UTC 
(rev 46344)
+++ trunk/mcs/class/System/System.Net/HttpWebRequest.cs 2005-06-22 06:04:24 UTC 
(rev 46345)
@@ -807,8 +807,10 @@
                        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;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to