annguyen34 / socket-final

Đồ án môn học Mạng máy tính

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

socket

A basic web client

Author:

  • Nguyen Hoang Phuc

  • Dang An Nguyen

How to build

  • First you need to install Virtualenv by following this code:
  pip install virtualenv
  • Then you need to activate virtual enviroment.
<your current directory to project>/venv/Scripts/activate
  • Install all needed package:
  pip install -r requirements.txt
  • If you want to close project, deactivate it:
<your current directory to project>/venv/Scripts/deactivate

Some function

  • Download single file: Download a specific file with TCP protocol, case content-length or transfer-encoding.

  • Multiple request: Send many request to one connection. This function I built follow by Persistent connection with pipelining

  • Multiple connection: Multiple thread to download many file

Error handling code

323: InterruptedError

324: UnicodeDecodeError

325: Error when downloading chunked file

326: AttributeError when getting content length

327: Error when receiving data and the returning packet was deviated

329: Error when parsing url to get folders directory

330: Cannot parsing html page to get file name in a folder

331: Exception when downloading folder

About

Đồ án môn học Mạng máy tính


Languages

Language:Python 100.0%