HttpWorkerRequest.GetProtocol Method ()

 

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
Show: