Receiving a HTTP POST in HTTP Handler?

前端 未结 3 1149
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-02 04:15

I need to listen and process a HTTP POST string in a HTTP handler.

Below is the code for posting the string to handler -

string test = \"charset = UT         


        
3条回答
  •  独厮守ぢ
    2021-01-02 04:47

    Change

        var value1 = context.Request["param1"];
    

    to

        var value1 = context.Request.Form["param1"];
    

提交回复
热议问题