How to parse an Angular POST request in WebApp2

前端 未结 3 618
臣服心动
臣服心动 2021-02-09 02:06

How do I get data from my Angular POST request in Google App Engine WebApp2? self.request.body returns a string, and self.request.get(key) returns not

3条回答
  •  有刺的猬
    2021-02-09 02:44

    You can try this:

     self.request.POST.get(key) # POST requests
     self.request.GET.get(key)  # GET requests
    

提交回复
热议问题