title: Eclipse plugin dev, how to stop HttpsURLConnection of poping up user/password window when I connect
body: <p>JDK IBM 1.6
  Eclipse 3.6.2</p>
  
  <p>Connect to a server with following code. </p>
  
  <blockquote>
    <p>URL urlTemplate = new URL(uri); uc = (HttpURLConnection)
    urlTemplate.openConnection();</p>
  </blockquote>
  
  <p>when connecting with wrong credential, it will pop up a window to enter correct credential as input, how to stop it? it seems to be built-in action and unable to stop that build-in functionality.</p>
  
  <p>Another issue is that, when i connected successfully to server once, it will store the credentials and subsequent tests will all be working even though with wrong user/password. How to clear the cache, so it can test new input user and password?</p>