This documentation is archived and is not being maintained.
HttpWorkerRequest.SendCalculatedContentLength Method
.NET Framework 1.1
Adds a Content-Length HTTP header to the response.
[Visual Basic] Public Overridable Sub SendCalculatedContentLength( _ ByVal contentLength As Integer _ ) [C#] public virtual void SendCalculatedContentLength( int contentLength ); [C++] public: virtual void SendCalculatedContentLength( int contentLength ); [JScript] public function SendCalculatedContentLength( contentLength : int );
Parameters
- contentLength
- The length of the response, in bytes.
Remarks
When the content length is not explicitly set, this method allows HttpWorkerRequest to add a Content-Length HTTP header to the response.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
HttpWorkerRequest Class | HttpWorkerRequest Members | System.Web Namespace
Show: