Enable and disable sending chunked data to the server.
[Visual Basic] Public Property SendChunked As Boolean [C#] public bool SendChunked {get; set;} [C++] public: __property bool get_SendChunked(); public: __property void set_SendChunked(bool); [JScript] public function get SendChunked() : Boolean; public function set SendChunked(Boolean);
Exception Type | Condition |
---|---|
InvalidOperationException | Data has already been written to the request stream. |
When SendChunked is true, data is sent to the server in segments. The server must support receiving chunked data, and ContentLength must be set to-1.
HttpWebRequest Class | HttpWebRequest Members | System.Net Namespace