代码之家  ›  专栏  ›  技术社区  ›  user3525290

从路由发送请求

  •  0
  • user3525290  · 技术社区  · 7 年前

    Internal Server Error failed (111: Connection refused) while connecting to upstream . 我知道如果我删除我看到的请求行 found you .

    @app.route('/route/<string:uname>', endpoint = 'uname')
    def uname():
        d={}
        d['fname']='data'
        d['lname']='data'
    
        requests.post(url='https:site.com/test/', data = data)
    return 'found you'
    @app.route('test', endpoint = 'test', methods = ['POST','GET'])   
    def test():
    return "submitted to test"
    

    verify=False

    0 回复  |  直到 7 年前
    推荐文章