Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一个 HTTP POST 请求/响应事务包括
上传请求标题 上传请求正文 下载响应标头 下载响应正文
我正在 .net 中寻找单独测量上述第 4 项(响应体)所需的时间。 是否有一个事件接收器或巧妙地使用 .net api(标记 POST 标头已完成下载),我可以使用它来开始计时后续响应正文?
为此建议的更高级别的 .net 网络机制最好是WebClient。但是任何有效的 .net 编码解决方案也将被接受。
这可能是开始的地方..
DownloadProgressChanged(触发时)
和
DownloadStringCompleted(完成后)