Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpRequest.RequestType Property

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

[Visual Basic]
Public Property RequestType As String
[C#]
public string RequestType {get; set;}
[C++]
public: __property String* get_RequestType();
public: __property void set_RequestType(String*);
[JScript]
public function get RequestType() : String;
public function set RequestType(String);

Property Value

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

Example

The following example assigns a value representing the HTTP request type to a string variable.

[Visual Basic] 
Dim str As String
 str = Request.RequestType
   

[C#] 
String str;
 str = Request.RequestType;
   

[C++] 
String* str;
 str = Request->RequestType;
   

[JScript] 
var str : String = Request.RequestType
   

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpRequest Class | HttpRequest Members | System.Web Namespace

Show:
© 2015 Microsoft