This documentation is archived and is not being maintained.

HttpWorkerRequest.GetProtocol Method

When overridden in a derived class, returns the HTTP protocol (HTTP or HTTPS).

[Visual Basic]
Public Overridable Function GetProtocol() As String
[C#]
public virtual string GetProtocol();
[C++]
public: virtual String* GetProtocol();
[JScript]
public function GetProtocol() : String;

Return Value

HTTPS if the IsSecure method is true, otherwise HTTP.

Requirements

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

See Also

HttpWorkerRequest Class | HttpWorkerRequest Members | System.Web Namespace

Show: