WebClient Properties Credentials Property. Gets or sets the network credentials that are sent to the host and used to authenticate the request. The following code example uses the user's system credentials to authenticate a request. Sep 12, 2012 Now what I need to do is be able to extract certain data from the site and put it into a csv or text file. Any thoughts there or any articles you know of that would better explain doing that?
-->Definition
Gets or sets a Boolean value that controls whether the DefaultCredentials are sent with requests.
Property Value
true
if the default credentials are used; otherwise false
. The default value is false
.Examples
The following code example demonstrates setting this property.
Remarks
Set this property to
true
when requests made by this WebClient object should, if requested by the server, be authenticated using the default 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.