http post
-
Hi , how do i perform an http post to a classic asp page from within a windows forms app? thanks jan www.agilis.be
-
Hi , how do i perform an http post to a classic asp page from within a windows forms app? thanks jan www.agilis.be
You need to do something like this, i havent tested this, but it should work.
byte [] data = null;
WebRequest req = WebRequest.Create("http://someurl/page.asp");
req.Method = "POST";
req.ContentType = "application/x-www-form-urlencoded";
Stream output = req.GetRequestStream();
data = System.Text.Encoding.ASCII.GetBytes ("some string to be posted");
req.ContentLength = data.Length;
output.Write (data, 0, data.Length);
output.Close();- Kannan
-
You need to do something like this, i havent tested this, but it should work.
byte [] data = null;
WebRequest req = WebRequest.Create("http://someurl/page.asp");
req.Method = "POST";
req.ContentType = "application/x-www-form-urlencoded";
Stream output = req.GetRequestStream();
data = System.Text.Encoding.ASCII.GetBytes ("some string to be posted");
req.ContentLength = data.Length;
output.Write (data, 0, data.Length);
output.Close();- Kannan
hi kannan tx 4 the fast reply. I have yet another question. I need to encode a checkbox value. how do i do that. This is the form .name (11.31 EUR) ccTLD's .be (8.50 EUR) www.agilis.be