Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Proxy richtig ansteuern

Empfohlene Antworten

Veröffentlicht

hi,

wie immer wieder mal wollte ich auch heute wieder etwas neues in Java ausprobieren. Dabei bin ich auf Problem mit URLConnection gestoßen. und zwar erhalte ich nach einiger Zeit immer eine Timeout-Exception wenn ich versuche darauf zu zu greifen.

Es gibt hier einen Proxy Server, mit IE ist kein Problem...hab ja Zugangsdaten dafür. Aber wie gebe ich java diese Daten ?

habe es mit System.setProperty() versucht (proxySet,Host,Port,User,PW)

und mit Connection.setRequestProperty("Proxy-Authorization") bei lettzteren das Passwort zuerst durch einen Base64 Encoder gejagt...hatte im Internet was damit gefunden.

ich hoffe einer von euch hat praktische Erfahrung damit und kann mir sagen wie es richtig geht

vielen dank

Nachtrag:

wenn ich auf eine Lokal-verfügbare Inet-Seite zugreife, die nicht "hinter" dem Proxy liegt, geht alles.

Probiers mal damit:


String host = "proxy.bla.de";

String port = "1234";

System.getProperties().setProperty("http.proxyHost", host);

System.getProperties().setProperty("http.proxyPort", port);

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.