I am trying to set value of referer parameter of httpwebrequest header, but it is giving error-

Function that I am using (C#):

```
webRequest.Headers.Set(HttpRequestHeader.Referer, "http://www.microsoft.com");

```

Error:

```
Invalid parameters. A required parameter is not found or contains invalid value.

```