#!/usr/bin/python
# -*- coding: UTF-8 -*-
import time
import sys
import json
import requests
import random
reload(sys)
sys.setdefaultencoding( "utf-8" )
#接口请求地址
url="http://"
#请求头
headers={
"content-type":"application/json"
}
payload = {
"sqlId":9
}
#转换成json
getJson=json.dumps(payload).encode("utf-8")
#构造发送请求
response=requests.get(url=url,data=getJson)
#打印响应数据
print(response.text)
print "Good bye!"
exit(0)