How can I intercept a JSON response of a POST request in a WebView?
<p>I'm currently developing a login module. After click the "login" button in a WebView, the browser will receive a json response, and then redirect to the another page. How can I intercept this json response?</p>

<p>I tried <code>shouldOverrideUrlLoading (WebView view, String url)</code> and print all the url input, but I can not find the json response.</p>

<pre><code>mWebview.setWebViewClient(new WebViewClient() {

        @Override
        public WebResourceResponse shouldInterceptRequest (final WebView view, String url) {
            Log.i("InterceptRequest", url);
            return super.shouldInterceptRequest(view, url);
        }

        @Override
        public void onPageStarted(WebView view, String url, Bitmap favicon) {
            Log.i("onPageStarted", url);
        }

        @Override
        public void onPageFinished(WebView view, String url) {
            Log.i("onPageFinished", url);
        }

    });
</code></pre>

<p>I also noticed that when I can not see this response in Chrome and Firefox, but I can see it in IE.</p>

<p>Thank you.</p>