correct content type for post request
authorKonstantin Triger <kostat@mono-cvs.ximian.com>
Tue, 27 Feb 2007 16:51:35 +0000 (16:51 -0000)
committerKonstantin Triger <kostat@mono-cvs.ximian.com>
Tue, 27 Feb 2007 16:51:35 +0000 (16:51 -0000)
svn path=/trunk/mono/; revision=73484

data/net_1_1/DefaultWsdlHelpGenerator.aspx
data/net_2_0/DefaultWsdlHelpGenerator.aspx
data/net_2_0/DefaultWsdlHelpGenerator.jvm.aspx

index 038627e858f756c9358bf10ee8992e5f1c4c5d94..923655937f14ddf5f6b04f9feb2fca18fb736a80 100644 (file)
@@ -353,6 +353,7 @@ string GetTestResult ()
                        req = WebRequest.Create (url);
                        req.Method = "POST";
                        if (qs != null && qs.Length > 0) {
+                               req.ContentType = "application/x-www-form-urlencoded";
                                byte [] postBuffer = Encoding.UTF8.GetBytes (qs);
                                req.ContentLength = postBuffer.Length;
                                using (Stream requestStream = req.GetRequestStream ())
index 0b02fb5de572d5004ff0e4b0f15abad5f77dbdd6..6f58830a69d402e304b30b7ef6b2f18ca3f90b7e 100644 (file)
@@ -364,6 +364,7 @@ string GetTestResult ()
                    req = WebRequest.Create (url);
                    req.Method="POST";
                    if (!String.IsNullOrEmpty (qs)) {
+                       req.ContentType = "application/x-www-form-urlencoded";
                        byte [] postBuffer = Encoding.UTF8.GetBytes (qs);
                        req.ContentLength = postBuffer.Length;
                        using (Stream requestStream = req.GetRequestStream())
index e5ca2828da26ea7cf0c8663ceffe287bd9b7367f..71329f308a05cfa00641bcbc7e47d8fa571b3d54 100755 (executable)
@@ -356,6 +356,7 @@ string GetTestResult ()
                    req = WebRequest.Create (url + ".invoke");
                    req.Method="POST";
                    if (!String.IsNullOrEmpty (qs)) {
+                       req.ContentType = "application/x-www-form-urlencoded";
                        byte [] postBuffer = Encoding.UTF8.GetBytes (qs);
                        req.ContentLength = postBuffer.Length;
                        using (Stream requestStream = req.GetRequestStream())