.net - Using WebClient to login and download files -
i've found different examples of doing this, haven't been able combination of them work. basically, have intranet system can generate documents web link, , know ones want download. able generate list of links want download, run problems authenticating system within program. keep getting 401 error this: public shared sub downloadfiles(_tool tool) dim links list(of string) = getjiralinks(_tool) dim downloader new webclient ' initialize client dim reqparm new specialized.namevaluecollection reqparm.add("os_username", "user") reqparm.add("os_password", "pass") reqparm.add("os_destination", "/secure/") downloader.credentials = new networkcredential("user", "pass") dim uploadlocation string = my.settings.jiralocation & "login.jsp" 'downloader.headers.add("content-type", "application/x-www-form-urlencoded") ...