[SOLVED] Http verb of current http context

Issue

How do you find the http verb (POST,GET,DELETE,PUT) used to access your application? Im looking httpcontext.current but there dosent seem to be any property that gives me the info. Thanks

Solution

Use HttpContext.Current.Request.HttpMethod.

See: http://msdn.microsoft.com/en-us/library/system.web.httprequest.httpmethod.aspx

Answered By – Daniel A. White

Answer Checked By – Marilyn (BugsFixing Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *