Dim request As WebRequest = WebRequest.Create("http://www.example.com/a.aspx ")
request.Method = "POST"
Dim postData = Encoding.UTF8.GetBytes("example")
request.ContentLength = postData.Length
Dim dataStream As Stream = request.GetRequestStream()
dataStream.Write(postData, 0, postData.Length)
dataStream.Close()
Examples like above can be found everywhere, but how about the other side - how to retrieve and process the request data (i.e."example"
)?