HttpServerUtilityBase.TransferRequest Method (String, Boolean, String, NameValueCollection, Boolean)

.NET Framework 4.5

When implemented in a derived class, asynchronously executes the end point at the specified URL, using the specified HTTP method, headers, path, and options to preserve form values and preserve the user identity.

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

public virtual void TransferRequest(
	string path,
	bool preserveForm,
	string method,
	NameValueCollection headers,
	bool preserveUser
)

Parameters

path
Type: System.String

The path.

preserveForm
Type: System.Boolean

true to preserve the QueryString and Form collections; false to clear the QueryString and Form collections.

method
Type: System.String

The HTTP method to use for the new request.

headers
Type: System.Collections.Specialized.NameValueCollection

A NameValueCollection object that contains request headers for the new request.

preserveUser
Type: System.Boolean

true to preserve the user identity; otherwise, false. Other overloads of this method call this method overload with the preserveUser parameter set to true.

.NET Framework

Supported in: 4.6, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft