Parsing an HTTP Request

  • Thread starter Thread starter DLOC
  • Start date Start date
D

DLOC

Hi all,

I am building a small web server proxy and am wondering if there is an HTTP
request parser that I can leverage from the .NET Framework in C#. The goal
would be to pass in a raw request stream and obtain formatted request
fields. Any help is appreciated, thank you.
 
DLOC,

I think the best bet would be to use the SimpleWorkerRequest class in
the System.Web.Hosting namespace. You can pass in the url of the page
requested, as well as the content of the request, and the TextWriter to
capture the response. Once you have that, you can access all of the
elements of the request.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top