示例#1
0
文件: post.py 项目: hackrfbyt/pimark
def postd():
    data = request.body
    datas = data.read().decode('utf-8')
    print(datas)
    insertdb(datas)
    makehtml.makehtml()
    return "Post OK\n"
示例#2
0
def postd():
    data=request.body
    datas=data.read().decode('utf-8')
    print(datas)
    insertdb(datas)
    makehtml.makehtml()
    return "Post OK\n" 
示例#3
0
def index():
    #insertdb2() 
    return makehtml.makehtml()
示例#4
0
@app.route('/test')
def index():
    #insertdb2() 
    return makehtml.makehtml()
#return "hello kitty ? ?"

@app.post('/send')
def postd():
    data=request.body
    datas=data.read().decode('utf-8')
    print(datas)
    insertdb(datas)
    makehtml.makehtml()
    return "Post OK\n" 

@app.post('/commit')
def commit():
    print("This is the github.com post me some mmessage:")
    data=request.body
    datas=data.read()
    print(datas)
    return "Post OK\n" 

if __name__=='__main__':
    #insertdb2()
    makehtml.makehtml()
    #run(server="paste",host="0.0.0.0")
    #run(server="gevent",host="0.0.0.0")