How to POST data to ASP.NET HttpHandler?

前端 未结 6 734
无人及你
无人及你 2021-02-02 15:58

I am trying to send a large chunk of data over to a HTTP handler. I can\'t send it using GET because of the URL length limit so I decided to POST it instead. The problem is that

6条回答
  •  清歌不尽
    2021-02-02 16:43

    POST fields are contained in

    HttpContext.Request.Params
    

    To retrieve them you can use

    var field = HttpContext.Request.Params["fieldName"];
    

提交回复
热议问题