摘要: 1、模拟http浏览器发起访问百度首页的动作 curl http://www.baidu.com 2、也可以模拟http浏览器发起POST动作,这个在测试后端程序时非常常见。 阅读全文
posted @ 2017-09-21 23:23 爱编程的小兵 阅读(511) 评论(0) 推荐(0) 编辑
摘要: #! /usr/bin/python2.7import ncclientfrom ncclient import managerwith manager.connect(\ host="192.168.56.2", \ port=22, \ username="client002", \ hostk 阅读全文
posted @ 2017-09-21 00:30 爱编程的小兵 阅读(353) 评论(0) 推荐(0) 编辑