System 2.0.0.0 4.0.0.0 System.Configuration.ConfigurationElement

This class corresponds to the maximumResponseHeadersLength attribute of the HttpWebRequest Element (Network Settings) configuration element.

The information in this class applies to responses to requests made with the and classes.

This class provides programmatic access to information that can be stored in configuration files.

Represents the maximum length for response headers. This class cannot be inherited.

- Constructor
  2.0.0.0
  4.0.0.0

  This constructor adds a object that represents the to the collection.

  Initializes a new instance of the class.

- Property
  2.0.0.0
  4.0.0.0
  System.Configuration.ConfigurationProperty("maximumErrorResponseLength", DefaultValue=Mono.Cecil.CustomAttributeArgument)
  System.Int32 To be added. To be added.

  Gets or sets the maximum allowed length of an error response.

- Property
  2.0.0.0
  4.0.0.0
  System.Configuration.ConfigurationProperty("maximumResponseHeadersLength", DefaultValue=Mono.Cecil.CustomAttributeArgument)
  System.Int32 To be added.

  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.

  Gets or sets the maximum allowed length of the response headers.

- Property
  2.0.0.0
  4.0.0.0
  System.Configuration.ConfigurationProperty("maximumUnauthorizedUploadLength", DefaultValue=Mono.Cecil.CustomAttributeArgument)
  System.Int32 To be added. To be added.

  Gets or sets the maximum length of an upload in response to an unauthorized error code.

- Method
  2.0.0.0
  4.0.0.0
  System.MonoTODO
  System.Void To be added. To be added.
- Property
  2.0.0.0
  4.0.0.0
  System.Configuration.ConfigurationPropertyCollection To be added.

  The collection contains one element, which corresponds to the property.

  Gets the collection of properties for the current instance.

- Property
  2.0.0.0
  4.0.0.0
  System.Configuration.ConfigurationProperty("useUnsafeHeaderParsing", DefaultValue=Mono.Cecil.CustomAttributeArgument)
  System.Boolean To be added.

  When this property is set to false, the following validations are performed during HTTP parsing:

  In end-of-line code, use CRLF; using CR or LF alone is not allowed.

  Headers names should not have spaces in them.

  If multiple status lines exist, all additional status lines are treated as malformed header name/value pairs.

  The status line must have a status description, in addition to a status code.

  Header names cannot have non-ASCII chars in them. This validation is performed whether this property is set to true or false.

  When a protocol violation occurs, a exception is thrown with the status set to . If the UseUnsafeHeaderParsing property is set to true, validation errors are ignored.

  Setting this property to true has security implications, so it should only be done if backward compatibility with a server is required.

  Setting this property ignores validation errors that occur during HTTP parsing.