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.

Mittels Winsock2 den Code einer Internetseite bekommen?

Empfohlene Antworten

Veröffentlicht

HeyHo...

Bin noch recht neu was das Thema Internet/Netzwerk angeht...

Daher meine Frage:

Ist es möglich mittels Winsock an den HTML-Code einer Internetseite zu kommen?

Ich stelle mir das etwa so vor:

- Verbindungsherstellung mittels Serverip

- Senden eines Befehls

(z.B.: char buf[256]; strcpy(buf,"GET"); send(s,buf,3,0); )

- Empfangen

Keine Ahnung ob das so vom Ansatz her überhaupt richtig ist, kann mir jemand nähere Infos dazu geben?

lg

Jonsc1

Ist es möglich mittels Winsock an den HTML-Code einer Internetseite zu kommen?

Ja.

Ich stelle mir das etwa so vor:
So in der Art. Du schreibst eben einen HTTP-Client.

Keine Ahnung ob das so vom Ansatz her überhaupt richtig ist, kann mir jemand nähere Infos dazu geben?
Der Ansatz ist nicht falsch, allerdings ist das kaum notwendig. Viele Entwicklungsumgebungen und Bibliotheken haben fertige Funktionen für HTTP-Requests. Wenn du sagst, was du benutzt, können wir dir womöglich sagen, wie das viel einfacher geht.

Und weil das nichts mit Standard-C++ zu tun hat:

Verschoben -> C++: Compiler, IDEs, APIs

MS Visual c++ 6.0

Ich habe was das Thema angeht ziemlich wenig Ahnung und taste mich so langsam an die Sache ran...

Wäre schonmal ein Erfolg den Quelltext in nem Rich-Textfeld anzeigen zu lassen....

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.