J
Jeff
I have a C# Winforms app developed with Visual Studio Express Edition
that uses a WebBrowser control to POST data to an external website.
Here is some sample code:
string postStr = "parm1=hello";
postStr += "&parm2=world";
byte[] postBytes =Encoding.UTF8.GetBytes(postStr);
WebBrowser webBrowser = new WebBrowser();
webBrowser.Navigate("http://www.mydomain.com/post_here",
"_blank", postBytes, "Content-Type: application/x-www-form-urlencoded"
+ "\n" + "\r");
This works just fine when the app runs in Windows XP, but with Vista,
the data isn't properly posted. After further investigation, I did a
network trace (with ethereal), and discovered that while the XP
instance sent a HTTP POST with my data (correct), Vista sent a HTTP
GET, resulting in the error. Is there a known issue with
System.Windows.Forms.WebBrowser POSTing data on Vista?
that uses a WebBrowser control to POST data to an external website.
Here is some sample code:
string postStr = "parm1=hello";
postStr += "&parm2=world";
byte[] postBytes =Encoding.UTF8.GetBytes(postStr);
WebBrowser webBrowser = new WebBrowser();
webBrowser.Navigate("http://www.mydomain.com/post_here",
"_blank", postBytes, "Content-Type: application/x-www-form-urlencoded"
+ "\n" + "\r");
This works just fine when the app runs in Windows XP, but with Vista,
the data isn't properly posted. After further investigation, I did a
network trace (with ethereal), and discovered that while the XP
instance sent a HTTP POST with my data (correct), Vista sent a HTTP
GET, resulting in the error. Is there a known issue with
System.Windows.Forms.WebBrowser POSTing data on Vista?