Request |
The RequestConfiguration type exposes the following members.
| Name | Description | |
|---|---|---|
| Accept | A String containing the value of the HTTP Accept header. The default value of this property is null. Note: For additional information see section 14.1 of IETF RFC 2616 - HTTP/1.1. | |
| AllowAutoRedirect | Set AllowAutoRedirect to true to allow the current request to automatically follow HTTP redirection headers to the new location of a resource. Default value is true. The maximum number of redirections to follow is set by the MaximumAutomaticRedirections property. | |
| AuthenticationLevel | Gets or sets values indicating the level of authentication and impersonation used for this request. | |
| AutomaticDecompression | A DecompressionMethods object that indicates the type of decompression that is used. Default value is None; | |
| CachePolicy | Gets or sets the cache policy for this request. | |
| ClientCertificates | The X509CertificateCollection that contains the security certificates associated with this request. | |
| ConnectionGroupName | When overridden in a descendant class, gets or sets the name of the connection group for the request. | |
| ContentType | The ContentType property contains the media type of the request. Values assigned to the ContentType property replace any existing contents when the request sends the Content-type HTTP header. The default value is null. | |
| CookieContainer | Gets or sets the cookies associated with the request. | |
| Credentials | A ICredentials object containing the authentication credentials associated with the current instance. The default is null. | |
| Expect | A String that contains the contents of the HTTP Expect header. The default value is null. The value specified for a set operation is "100-continue". This value is case insensitive. | |
| Headers | When overridden in a descendant class, gets or sets the collection of header name/value pairs associated with the request. | |
| IfModifiedSince |
A DateTime that contains the contents of the HTTP If-Modified-Since header.
The default value is the current date and time of the system.
Note: For additional information see section 14.25 of IETF RFC 2616 - HTTP/1.1.
| |
| ImpersonationLevel | Gets or sets the impersonation level for the current request. | |
| KeepAlive | An application uses KeepAlive to indicate a preference for persistent connections. When this property is true, the application makes persistent connections to the servers that support them. | |
| MaximumAutomaticRedirections | A Int32 value that indicates the maximum number of redirection responses that the current instance will follow. The default value is implementation-specific. The value specified for a set operation is less than or equal to zero. | |
| MediaType | A String that identifies the media type of the current request. The default value is null. | |
| Pipelined | An application uses this property to indicate a preference for pipelined connections. If Pipelined is true , an application makes pipelined connections to servers that support them. The default is true. Pipelined connections are made only when the property is true. | |
| PreAuthenticate | Gets or sets a Boolean value that indicates whether to send HTTP preauthentication header information with current instance without waiting for an authentication challenge from the requested resource. true to send a HTTP WWW-authenticate header with the current instance without waiting for an authentication challenge from the requested resource; otherwise, false . The default is false . | |
| ProtocolVersion | A Version that represents the HTTP version to use for the request. The default is Version10. The class supports only versions 1.0 and 1.1 of HTTP. Setting ProtocolVersion to a different version causes a ArgumentException exception to be thrown. | |
| Proxy | The Proxy property identifies the WebProxy instance to use to communicate with the destination server. To specify that no proxy should be used, set the HttpWebRequest. Default value is null. | |
| Referer | A String containing the value of the HTTP Referer header. The default value is null. Note: For additional information see section 14.36 of IETF RFC 2616 - HTTP/1.1. | |
| SendChunked | When System.Net.HttpWebRequest.SendChunked is true , the request sends data to the destination in segments. The destination server is required to support receiving chunked data. The default value is false. Set this property to true only if the server specified by the System.Net.HttpWebRequest. Address property of the current instance accepts chunked data (i.e. is HTTP/1.1 or greater in compliance). If the server does not accept chunked data, buffer all data to be written and send a HTTP Content-Length header with the buffered data. | |
| Timeout | ||
| TransferEncoding | A String that contains the value of the HTTP Transfer-encoding header. The default value is null. Clearing TransferEncoding by setting it to null has no effect on the value of SendChunked. Values assigned to the TransferEncoding property replace any existing contents. For additional information see section 14.41 of IETF RFC 2616 - HTTP/1.1. | |
| UseDefaultCredentials | true if the default credentials are used; otherwise, false. The default value is false. Set this property to true when requests made by this HttpWebRequest object should, if requested by the server, be authenticated using the credentials of the currently logged on user. For client applications, this is the desired behavior in most scenarios. For middle-tier applications, such as ASP.NET applications, instead of using this property, you would typically set the Credentials property to the credentials of the client on whose behalf the request is made. | |
| UserAgent | A String containing the value of the HTTP User-agent header. The default value is "/{}". |