Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FormPostHttpBody::WriteHttpBody Method (WebTestRequest^, Stream^)

 

Writes the HTTP body stream.

Namespace:   Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

public:
virtual void WriteHttpBody(
	WebTestRequest^ request,
	Stream^ bodyStream
) sealed

Parameters

request
Type: Microsoft.VisualStudio.TestTools.WebTesting::WebTestRequest^

Used to define the encoding of non-ASCII characters.

bodyStream
Type: System.IO::Stream^

The stream to add the form post HTTP body.

This creates a stream that contains the parameter names and values found in the FormPostParameterCollection returned by FormPostParameters if the ContentType is URL encoded. Otherwise, it returns a stream representing multipart/form-data ContentType.

Return to top
Show: