1. 程式人生 > >python http通信實現

python http通信實現

http協議 分開 協議 soc pytho 傳輸 pcl https cli

http協議通信需要httpServer和httpClient.

在python中

httpServer的實現類是server.py文件,要跟實現tcp,udp Server的文件socketserver.py區分開

httpClient的實現類是client.py文件,也可以使用urllib庫自己實現httpclient。

http是基於tcp/udp傳輸的,所以server.py和client.py文件中會涉及socket,socketserver類。

python http通信實現