查看响应的http header
使用 UIWebViews 时,有没有一种方法可以捕获请求(所有 GET 请求 - 也适用于页面的内容/图像等),以便我可以检查请求/响应标头(无需解析为wireshark)?
When working with UIWebViews, is there a way to capture a request (all GET requests - also for the page's content/images etc.) on the way so that I can examine the request/response headers (without resolving to wireshark)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过下面的函数设置webview的delegate并捕获请求。
然后检查请求对象内的请求标头。
You can set the delegate of the webview and capture the request by function below.
Then exam the request header inside the request object.