Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

HttpWorkerRequest.SendCalculatedContentLength Method

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:
© 2015 Microsoft