title: Access remote pdf file with login (authentication)
body: <p>I am facing problem with <code>loading URL</code> in <code>web-view</code>. <code>Web-view</code> shows blank because it is not logged in. How to access <code>course file</code> without login into moodle2.6 by using <code>url</code>.</p>
  
  <p><strong>Using this url format</strong></p>
  
  <p><a href="http://example.com/pluginfile.php/4418/mod_resource/content/10/xx-t2.pdf" rel="nofollow noreferrer">http://example.com/pluginfile.php/4418/mod_resource/content/10/xx-t2.pdf</a></p>
  
  <p><strong>Here is my web-view code</strong></p>
  
  <pre><code>webView.setWebViewClient(new WebViewClient(){
  
          @Override
          public boolean shouldOverrideUrlLoading(WebView view, String url) {
              //progDailog.show();
              view.loadUrl(url);
  
              return true;
          }
          @Override
          public void onPageFinished(WebView view, final String url) {
              //progDailog.dismiss();
          }
      });
  
      webView.loadUrl("http://example.com/pluginfile.php/4418/mod_resource/content/10/xx-t2.pdf");
  </code></pre>