开发者

Can I get read access to the HTTP output stream in ASP.NET?

I would like to read all content that's been written to the output stream. I'm attempting to do this using an HTTP module, and it seems like the obvious timing would be when handling the PreSendRequestContent event.

However, if the output stream seems to be set to write-only, as I can't read using a StreamReader. Is开发者_如何学Python there a way I read and re-write the content without writing my own IIS module?


Look at the HttpResponse.Filter property.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜