[root@node01 ~]# curl http://192.168.137.1:8000/api2/ping/
"pong"[root@node01 ~]#
python 实现;
import httplib
url='http://192.168.137.1:8000/api2/ping/'
conn = httplib.HTTPConnection('192.168.137.1',8000)
conn.request(method="GET",url=url)
response = conn.getresponse()
res= response.read()
print res
C:Python27python.exe C:/Users/TLCB/PycharmProjects/untitled/a7.py
"pong"