使用 HttpListenerContext 来接受 HttpWebRequest Post 的 表单数据时
request.Stream.Length 报错:此流不支持查找操作
经过好半天的查寻 需要使用 Request.ContentLength64 来获取长度.
Dim i As Long = Context.Request.ContentLength64
Dim byts As Byte()
ReDim byts(i - 1)
Context.Request.InputStream.Read(byts, 0, i)
Dim req As String = System.Text.Encoding.UTF8.GetString(byts)