python http通信实现
时间:2018-07-18 16:38:20
收藏:0
阅读:353
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类。
原文:https://www.cnblogs.com/stin/p/9329240.html
评论(0)