System.Net.HttpWebResponse.Server Property

Gets the name of the server that sent the response.

Syntax

public string Server { get; }

Value

A string containing the name of the server that sent the response.

Exceptions

TypeReason
ObjectDisposedExceptionThe current instance has been disposed.

Remarks

The HttpWebResponse.Server property contains the value of the Server header returned with the response.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0