python发送http请求包:httplib,urllib,urllib2,urllib3,requests
httplib:1、创建连接conn=httplib.HTTPSConnection(“www.baidu.com”)2、发送请求conn.request(“GET”,“/”)3、接受请求conn.getresponse()urllib:1、构建数据包data=urllib.urlencode({‘key’:“value”})2、发送get请求(?衔接参数)response=urllib.urlo