G
Guest
I need to provide data to a cgi script on a remote site from my asp.net web
form. The script expects a querystring containing the data. I want to keep
the user at my site, and submit the data programmatically and transparently.
Can I use something similar to:
Dim objHTTP As Net.WebRequest =
Net.WebRequest.Create("https://www.website.org/cgi-local/register2004.cgi")
objHTTP.Method = "POST"
objHTTP.ContentType = "application/x-www-form-urlencoded"
objHTTP.ContentLength = strForm.Length
Dim stOut As System.IO.StreamWriter = New
IO.StreamWriter(objHTTP.GetRequestStream, System.Text.Encoding.ASCII)
stOut.Write(strForm)
stOut.Close()
to do this? Thanks!
form. The script expects a querystring containing the data. I want to keep
the user at my site, and submit the data programmatically and transparently.
Can I use something similar to:
Dim objHTTP As Net.WebRequest =
Net.WebRequest.Create("https://www.website.org/cgi-local/register2004.cgi")
objHTTP.Method = "POST"
objHTTP.ContentType = "application/x-www-form-urlencoded"
objHTTP.ContentLength = strForm.Length
Dim stOut As System.IO.StreamWriter = New
IO.StreamWriter(objHTTP.GetRequestStream, System.Text.Encoding.ASCII)
stOut.Write(strForm)
stOut.Close()
to do this? Thanks!