Hallo zusammen!
Ich bin über die Suche auf diesen Thread gestoßen. Habe ebenfalls die Galileocomputing-Seite gefunden und mir auch ein Beispiel dran genommen:
public static void connect(String urlString, String username, String pass)
{
try
{
System.getProperties().setProperty("http.proxyHost", "sposrv01.spo.intern");
System.getProperties().setProperty("http.proxyPort", "8080");
URL url = new URL(urlString);
con = url.openConnection();
con.setRequestProperty("Proxy-Authorization: Basic ", userNamePasswordBase64(username, pass));
con.connect();
readContents();
}
catch (MalformedURLException e)
{
e.printStackTrace();
}
catch (IOException e)
{
e.printStackTrace();
}
}
Beim Aufruf der Methode readContents() bekomm ich immer wieder Fehlercode 407: Proxy Authentication Required. Kann mir da zufällig jemand weiterhelfen?