@app.route("/req",methods=['GET','POST'])
def req():
print(request.headers) #请求头的信息全部在这里面
print(request.json) #None Content-Type: application/json 的时候 数据是放到这里面的
print(request.data) #b'' #当 Content-Type 无法解析的时候 存放原始数据
print(request.url) #http://127.0.0.1/req
print(request.path) #/req
print(request.host) #127.0.0.1
print(request.host_url) #http://127.0.0.1/
print(request.full_path) #/req?
return render_template("data.html")