Mono Class Library: System.Net.HttpWebRequest Overview | Members

System.Net.HttpWebRequest.TransferEncoding Property

Gets or sets the value of the HTTP Transfer-encoding header. [Edit]

public string TransferEncoding { set; get; }

Value

A string that contains the value of the HTTP Transfer-encoding header. The default value is null. [Edit]

Exceptions

TypeReason
InvalidOperationExceptionHttpWebRequest.TransferEncoding is set when HttpWebRequest.SendChunked is false. [Edit]
ArgumentExceptionHttpWebRequest.TransferEncoding is set to the value "Chunked". This value is case insensitive. [Edit]

Remarks

This property can be set in the current instance only if the HttpWebRequest.SendChunked property in the current instance is true.

Note:

Clearing HttpWebRequest.TransferEncoding by setting it to null has no effect on the value of HttpWebRequest.SendChunked.

Values assigned to the HttpWebRequest.TransferEncoding property replace any existing contents.

For additional information see section 14.41 of IETF RFC 2616 - HTTP/1.1.

[Edit]

Requirements

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