Type Reason ArgumentNullException header is null or string.Empty. ArgumentException header does not contain a colon (:) character.
-or-
name is string.Empty, or contains invalid characters.
-or-
header is a protected header that can only be set with a property accessor or by the system.
-or-
value contains invalid characters.
The header parameter must be specified in the format "name:value". If the specified header does not exist in the collection, a new header is added to the collection.
If the header specified in header is already present in the collection, the value part of the header is concatenated with the existing value.