Posts

Showing posts with the label sharepoint-2007

Download file from SharePoint 2013 with authentication

Image
Download file from SharePoint 2013 with authentication I have a vb.net Tool, that Downloads a *. Zip file from a SharePoint Server. Till now it worked under SharePoint 2007 . Under SharePoint 2013 and I’m not abel to Download the File anymore. Under SharePoint 2013 the User has to Authenticate himself over this mask Authentication side in the Browser. This was the Old Solution that worked on SharePoint 2007 Dim WebIntranet As New WebClient Dim strURL as String = "https://example.com/content/P123456/Documents/File.zip" WebIntranet.UseDefaultCredentials = True 'Download the File from the Server WebIntranet.DownloadFile(strURL, "D:TempFile.zip ") For the new Solution it didn’t work and i tryed a few things: First Approch: Dim client As New WebClient Dim _UserAgend As String = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36" Dim strURL as String = "https://example.com/content/P...