title: Response 'Bad request' in HTML-body from MS Exchange OWA
body: <p>I create android app with WebView inside myActivity.</p>
  
  <blockquote>
    <p>public void onCreate( Bundle savedInstanceState)
        { 
          super.onCreate( savedInstanceState);</p>
  
  <pre><code>  // before setContentView
    CookieSyncManager.createInstance( this);
    CookieSyncManager.getInstance().startSync();
    CookieManager.getInstance().removeAllCookie();
    CookieManager.getInstance().setAcceptCookie( true);
  
    setContentView( R.layout.browser);
  
        webviewHTML = (WebView) findViewById( R.id.webviewHTML);
        WebSettings webSettings = webviewHTML.getSettings();
        webSettings.setSupportZoom( true);
        webSettings.setBuiltInZoomControls( true);
        webSettings.setJavaScriptEnabled( true);
        webSettings.setJavaScriptCanOpenWindowsAutomatically( true);
        webSettings.setAppCacheEnabled( false);
        webSettings.setSaveFormData( false);
        webSettings.setSavePassword( false);
        webSettings.setDefaultTextEncodingName( "utf-8");
        webSettings.setDomStorageEnabled( true);
        webSettings.setUserAgent( 0);
        webviewHTML.setWebViewClient( new myWebViewClient());
        webviewHTML.addJavascriptInterface( new myJavaScriptInterface(), getString( R.string.sAppName));
        webviewHTML.setOnLongClickListener( onWebViewLongClickListener);
  
        webviewHTML.loadUrl( "myaddress");
  }
  </code></pre>
  </blockquote>
  
  <p>When create WebView I open page of my corporate Microsoft Exchange 2010 OWA '<a href="https://mail.mydomain.com/owa/" rel="nofollow noreferrer">https://mail.mydomain.com/owa/</a>':</p>
  
  <p><img src="https://i.stack.imgur.com/Pcx1B.png" alt="enter image description here"></p>
  
  <p>Then I manual enter username and password from my domain.
  But I get error message page inside WebView (response code 200):</p>
  
  <blockquote>
    <p><code>&lt;head&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Bad Request&lt;/body&gt;&lt;/head&gt;</code></p>
  </blockquote>
  
  <p>Screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/65XeT.png" alt="enter image description here"></p>
  
  <p>But when I open this page inside any browser (Chrome) I correct enter to OWA mail page:
  <img src="https://i.stack.imgur.com/CHuYQ.png" alt="enter image description here"></p>
  
  <p>Why Exchange server return html-page with error inside body?</p>
  
  <p>What I need add to WebView properties?</p>
  
  <p><strong>Add:</strong>
  Also when I open this page in desktop browser on PC window for username and password popup inside browser (not site):</p>
  
  <p><img src="https://i.stack.imgur.com/rSJnC.png" alt="enter image description here"></p>
  
  <p><strong>Add solution</strong> I find my error. I check URL in WebView.myWebViewClient.onPageFinish and URL was different with my starting URL. I correct this URL and my page will open correct.</p>