Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorKonstantin Triger <kostat@mono-cvs.ximian.com>2007-02-27 19:51:35 +0300
committerKonstantin Triger <kostat@mono-cvs.ximian.com>2007-02-27 19:51:35 +0300
commitebe9afb5584b01520de6d66f835ccca4ff97e2c1 (patch)
treed4be9b3ae2452f3b92fc7e17f421506be3b7b669 /data
parentc1d2670d6f4713c48c143da4c2216baf2c269db5 (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.aspx1
-rw-r--r--data/net_2_0/DefaultWsdlHelpGenerator.aspx1
-rwxr-xr-xdata/net_2_0/DefaultWsdlHelpGenerator.jvm.aspx1
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())