Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webview的http错误码404等接收不了 #8

Open
catroom opened this issue Jul 18, 2017 · 0 comments
Open

webview的http错误码404等接收不了 #8

catroom opened this issue Jul 18, 2017 · 0 comments

Comments

@catroom
Copy link
Owner

catroom commented Jul 18, 2017

http://www.lai18.com/content/1513532.html这个文章是没有用的。要webivew接收http的错误码
@OverRide
public void onReceivedHttpError(WebView view, WebResourceRequest request, WebResourceResponse errorResponse) {
Log.d(LOG_TAG, "onReceivedHttpError: "+errorResponse.getStatusCode()+" "+errorResponse.getReasonPhrase());
super.onReceivedHttpError(view, request, errorResponse);
}
http://charlee.li/android-load-cert-err-ssl-in-webview.html
http://wolfeye.baidu.com/blog/webview-ignore-ssl-error/
https://www.servertastic.com/support/error-111-net-err-tunnel-connection-failed-unknown-error
接收不了ssl的即https的错误码
public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant