简体   繁体   English

Android WebView - 我怎样才能看到标题?

[英]Android WebView - How can I see Headers?

I can see a cookie with the code below我可以看到带有以下代码的 cookie

 String cookies = CookieManager.getInstance().getCookie(url); 

but I couldn't figure out how to get headers.但我不知道如何获得标题。

Refer if you want to get response header, Access the http response headers in a WebView?如果您想获得响应 header,请参阅 WebView 中的 http 响应标头?

or if you want to attach request header, just use attach map when call webView.loadUrl() How to load URL with headers in WebView? or if you want to attach request header, just use attach map when call webView.loadUrl() How to load URL with headers in WebView?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM