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

HttpWebRequestSettings Class [IIS 7 and higher]

IIS 7.0

Configures the maximum length for response headers.

class HttpWebRequestSettings : EmbeddedObject

This class contains no methods.

The following table lists the properties exposed by the HttpWebRequestSettings class.

Name

Description

MaximumErrorResponseLength

A read/write sint32 value that specifies the maximum allowed length, in kilobytes, of an error response. The default is 64.

MaximumResponseHeadersLength

A read/write sint32 value that specifies the maximum allowed length of the response headers. The default is 64.

The length is measured in kilobytes (1024 bytes) and it includes the response status line and the response headers, as well as all extra control characters received as part of the HTTP protocol. A value of -1 means no limit is imposed on the response headers; a value of 0 means that all requests will fail.

MaximumUnauthorizedUploadLength

A read/write sint32 value that specifies the maximum length, in bytes, of an upload in response to an unauthorized error code. The default is –1, which indicates that no size limit will be imposed on the upload.

UseUnsafeHeaderParsing

A read/write boolean value. true if validation errors that occur during HTTP parsing are ignored; otherwise, false. The default is false.

This class contains no subclasses.

Instances of this class are contained in the HttpWebRequest property of the SettingsSection class.

EmbeddedObject

   HttpWebRequestSettings

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

Community Additions

ADD
Show:
© 2015 Microsoft