HttpRequest.RequestType Property


Gets or sets the HTTP data transfer method (GET or POST) used by the client.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

Public Property RequestType As String

Property Value

Type: System.String

A string representing the HTTP invocation type sent by the client.

The following code example uses the HtmlEncode method to HTML-encode the value of the RequestType property and the WriteLine method to write the encoded value to the file. This code example is part of a larger example provided for the HttpRequest class.

' Write request information to the file with HTML encoding.

.NET Framework
Available since 1.1
Return to top