diff options
author | Konstantin Triger <kostat@mono-cvs.ximian.com> | 2007-02-27 19:51:35 +0300 |
---|---|---|
committer | Konstantin Triger <kostat@mono-cvs.ximian.com> | 2007-02-27 19:51:35 +0300 |
commit | ebe9afb5584b01520de6d66f835ccca4ff97e2c1 (patch) | |
tree | d4be9b3ae2452f3b92fc7e17f421506be3b7b669 /data | |
parent | c1d2670d6f4713c48c143da4c2216baf2c269db5 (diff) |
correct content type for post request
svn path=/trunk/mono/; revision=73484
Diffstat (limited to 'data')
-rw-r--r-- | data/net_1_1/DefaultWsdlHelpGenerator.aspx | 1 | ||||
-rw-r--r-- | data/net_2_0/DefaultWsdlHelpGenerator.aspx | 1 | ||||
-rwxr-xr-x | data/net_2_0/DefaultWsdlHelpGenerator.jvm.aspx | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/data/net_1_1/DefaultWsdlHelpGenerator.aspx b/data/net_1_1/DefaultWsdlHelpGenerator.aspx index 038627e858f..923655937f1 100644 --- a/data/net_1_1/DefaultWsdlHelpGenerator.aspx +++ b/data/net_1_1/DefaultWsdlHelpGenerator.aspx @@ -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 ()) diff --git a/data/net_2_0/DefaultWsdlHelpGenerator.aspx b/data/net_2_0/DefaultWsdlHelpGenerator.aspx index 0b02fb5de57..6f58830a69d 100644 --- a/data/net_2_0/DefaultWsdlHelpGenerator.aspx +++ b/data/net_2_0/DefaultWsdlHelpGenerator.aspx @@ -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()) diff --git a/data/net_2_0/DefaultWsdlHelpGenerator.jvm.aspx b/data/net_2_0/DefaultWsdlHelpGenerator.jvm.aspx index e5ca2828da2..71329f308a0 100755 --- a/data/net_2_0/DefaultWsdlHelpGenerator.jvm.aspx +++ b/data/net_2_0/DefaultWsdlHelpGenerator.jvm.aspx @@ -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()) |