Nancy (C#): How do I get my post data?

后端 未结 5 738
情书的邮戳
情书的邮戳 2021-02-07 01:29

I\'m using Corona SDK to post data to my C# server:

headers[\"Content-Type\"] = \"application/x-www-form-urlencoded\"
headers[\"Accept-Language\"] = \"en-US\"

l         


        
5条回答
  •  耶瑟儿~
    2021-02-07 02:25

    The post data is in

    this.Request.Body
    

    If you have suitable type you can deserialize your data to it using model binding:

    var x = this.Bind();
    

提交回复
热议问题