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.

Empfohlene Antworten

Veröffentlicht

Hallo,

ich habe ein kleines Problem. Ich versuche mit folgendem Code den Inhalt einer Webseite abzufragen.


WebRequest request = WebRequest.Create(url);

            WebResponse response = request.GetResponse();

            StreamReader reader = new StreamReader(response.GetResponseStream());

            content = reader.ReadToEnd();

Das Funktioniert soweit auch ganz gut. Nun ziehe ich mir aus dieser Seite die vorhandenen Links und möchte diesen folgen. Zum Beispiel: Ich rufe mit obigen Code den Inhalt der Seite www.seite.de ab, finde einen Link auf /home und rufe somit den obigen Code erneut mit der url www.seite.de/home auf.

Das Problem ist nun, dass die Homepage nicht mit der Seite antwortet, die ich erhalten hätte, wenn ich den Links z.B. im IE angeklickt hätte, sondern eine andere Seite darstellt, in der ich darauf hingewiesen werde, das ich die URL angeblich manuell in der Adresszeile manipuliert hätte. Ich möchte aber doch lieber die Seite haben, die ich ursprünglich angefordert hatte. Weiß jemand vielleicht, wie ich das anstellen kann?

Hm, gibs da auch ne funktion open ? normalerweise fragst du damit die hp ab..

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.