mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-14 12:09:12 -05:00
811 B
811 B
id, title, challengeType, videoId, bilibiliIds, dashedName
| id | title | challengeType | videoId | bilibiliIds | dashedName | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 5e7b9f0c0b6c005b0e76f073 | Vernetzung: Programmieren eines Web-Browsers | 11 | zjyT9DaAjx4 |
|
networking-write-a-web-browser |
--question--
--text--
Was erstellt der folgende Code?:
import socket
mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
mysock.connect(('data.pr4e.org', 80))
cmd = 'GET http://data.pr4e.org/romeo.txt HTTP/1.0\r\n\r\n'.encode()
mysock.send(cmd)
while True:
data = mysock.recv(512)
if len(data) < 1:
break
print(data.decode(),end='')
mysock.close()
--answers--
Einen einfachen Webserver.
Einen einfachen E-Mail-Client.
Eine einfache ToDo-Liste.
Einen einfachen Webbrowser.
--video-solution--
4