阅读背景:

Android webview中的setUserAgentString对loadURL()中使用的HTTP头没有影响

来源:互联网 

Been trying to change the User-Agent string in the HTTP request of an Android app. I have tested this together with wireshark and the emulator, and have seen that although I set the useragent string in the webview, the associated loadUrl request does not use this user-agent string. Instead I see the Dalvik useragent string in the wireshark capture. Here is the code abstract. Any ideas? Or does the emulator not support this?Been trying to change the User-Agent string in




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: