HttpWorkerRequest.GetProtocol Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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

public virtual string GetProtocol()

Return Value

Type: System.String

HTTPS if the IsSecure method is true, otherwise HTTP.

.NET Framework
Available since 1.1
Return to top