<p>I need to check the <code>RequestType</code> of an <code>HttpRequest</code> in ASP.NET (or <code>WebRequest.Method</code>). I know that I can just use the string values "<code>POST</code>" or "<code>GET</code>" for the request type, but I could have sworn there was a constant somewhere in some class in .NET that contained the values.</p>

<p>Out of curiosity I was wondering if anyone knew what class these string constants for <code>GET</code> and <code>POST</code> were in. I've tried searching online but I've had no luck, so I thought I'd ask here.</p>

```
```
System.Net.WebRequestMethods.Http
    .Connect = "CONNECT"
    .Get = "GET"
    .Head = "HEAD"
    .MkCol = "MKCOL"
    .Post = "POST"
    .Put = "PUT"
```
```
Ultimately, though; since
```
const
```
expressions are burned into the caller, this is identical to using "GET" etc, just without the risk of a typo.