HttpRequest.InsertEntityBody Method ()

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Provides IIS with a copy of the HTTP request entity body.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public void InsertEntityBody()

Exception Condition

The method was invoked on a version of IIS earlier than IIS 7.0.

IIS does not maintain a copy of the request after it has been read. Therefore, it is recommended that only the handler for an HTTP request should read the request entity.

The HttpRequest.InsertEntityBody method overload provides IIS with a copy of the request entity if it was previously read by ASP.NET. This method overload is useful for cases where ASP.NET has read the entity request and you want to reuse the existing request data.


For operating in a hosted environment. Security action: Demand. Associated enumeration: High

.NET Framework
Available since 4.0
Return to top