Python Simple Http Client-Server

Опубликовано: 28 Апрель 2013
на канале: Wojciech Wawrzyniak
3,688
0

In my project client will request server to get data from the web page
Detail description:
1. running the server
2. import socket
3. setup hosts and ports
4. creating a socket
5. binding the port to the socket then listen on that port
6. handling server request
7. sending data to the client
8. print output- first line summarise: protocol version, message number, and status (using wx instead of easy gui)
9. print output- data from web page
10. shut down file and socket


Writing the program you learn how HTTP works and this is quite important. Because for example work by all browsers and basically do the same thing, but of course, browsers are have much more powerful functions.
The program runs on localhost. That is the primary IP address is 127.0.0.1, it displays the index.html page of the web directory.


На этой странице сайта вы можете посмотреть видео онлайн Python Simple Http Client-Server длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Wojciech Wawrzyniak 28 Апрель 2013, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 3,688 раз и оно понравилось 0 зрителям. Приятного просмотра!