Is there a .NET ready made method to process response body of a HttpListener HttpListenerRequest body?

前端 未结 3 638
心在旅途
心在旅途 2021-02-07 07:05

I\'m using HttpListener to provide a web server to an application written in another technology on localhost. The application is using a simple form submission (application/x-w

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-07 07:28

    The magic bits that fill out HttpRequest.Form are in System.Web.HttpRequest, but they're not public (Reflector the method "FillInFormCollection" on that class to see). You have to integrate your pipeline with HttpRuntime (basically write a simple ASP.NET host) to take full advantage.

提交回复
热议问题