|
- Dim bytecount,bytes
- Dim stream,strRet
- bytecount = Request.TotalBytes
- bytes = Request.BinaryRead(bytecount)
- Set stream = Server.CreateObject("ADODB.Stream")
- stream.Type = 1 'adTypeBinary
- stream.Open()
- stream.Write(bytes)
- stream.Position = 0
- stream.Type = 2 'adTypeText
- stream.Charset = "utf-8"
- strRet = stream.ReadText() 'here is your json as a string
- stream.Close()
- Set stream = nothing
- Call WriteToTextFile("ttasp.txt",strRet,"utf-8")
复制代码
可以用于获取 POST 的原始主体等 |
|