Qhttp请求和响应调试
操作系统:Windows XP/Vista Qt版本:4.6.1 使用 OpenSSL,
我需要观察通过 QHttp 请求和响应的线路的实际请求和响应,并且在某些情况下需要中断请求。我尝试了市场上的一些 http 调试器,但它们似乎只适用于使用 WinInet 函数的请求。不幸的是,openssldump 实用程序在 Windows 平台上不存在。
谢谢。
OS: Windows XP/Vista
Qt version: 4.6.1
Using OpenSSL
I need to watch the actual requests and responses that is going through the wire for QHttp requests and responses and in some cases need to interrupt the request. I tried with few of the http debuggers available in the market but they seem to work only for requests that are using the WinInet functions. Unfortunately, the openssldump utility is not present on windows platforms.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不会使用 QNetworkAccessManger 代替 QHttp (已过时)并重新实现
QNetworkReply * QNetworkAccessManager::createRequest (操作 op, const QNetworkRequest & req , QIODevice * outgoingData = 0 ) [虚拟保护]
给你你需要的东西?
看看如何告诉 QWebPage 不要加载特定类型的资源?。这适用于 QWebPage 使用的 QNAM,但对于使用 QNAM 的任何代码都是相同的。
Wouldn't using QNetworkAccessManger instead of QHttp (which is obsolete) and reimplementing
QNetworkReply * QNetworkAccessManager::createRequest ( Operation op, const QNetworkRequest & req, QIODevice * outgoingData = 0 ) [virtual protected]
give you what you need?
Take a look at How to tell QWebPage not to load specific type of resources?. This is for QNAM used by QWebPage but it's the same for any code using QNAM.