python代码实现http get请求curl -u 用户名:密码 url -X get
#curl -u debezium:4a3s4d02234h http://p-awsbj-sas-hadoop-debezium-001.mynextev.net:8083/connectors -X GET s = requests.session() s.auth = ('debezium','4a3s4d02234h') url = 'http://p-awsbj-sas-hadoop-debezium-001.mynextev.net:8083/connectors' r = s.get(url) #获取状态码 #获取请求的数据 #获取请求内容 |
欢迎来撩 : 汇总all