Skip to content

Commit

Permalink
Added docs for HttpsUserAgent.
Browse files Browse the repository at this point in the history
  • Loading branch information
ravibpatel committed Sep 8, 2019
1 parent a6ee768 commit 70cd42e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ BasicAuthentication basicAuthentication = new BasicAuthentication("myUserName",
AutoUpdater.BasicAuthXML = AutoUpdater.BasicAuthDownload = AutoUpdater.BasicAuthChangeLog = basicAuthentication;
````

### Set User-Agent for http web requests

Set the User-Agent string to be used for HTTP web requests so you can differentiate them in your web server request logs.

````csharp
AutoUpdater.HttpUserAgent = "AutoUpdater";
````

### Enable Error Reporting

You can turn on error reporting by adding below code. If you do this AutoUpdater.NET will show error message, if there is no update available or if it can't get to the XML file from web server.
Expand Down

0 comments on commit 70cd42e

Please sign in to comment.