I'm trying to run the bulk file import utility using a C# web page. This is a POST web script (alfresco/service/bulkfsimport/initiate), so I can't put the various parameters into the URL. Anyway my code looks something like this:
I've tried including the ticket both as part of the POST object and as part of the URL. Every time I try this I get a 401 authentication error, and yes, I'm sure that I'm using good credentials.
//I encounter the same issue. It is resolved after adding following credential in webclient. CredentialCache cc = new CredentialCache(); cc.Add(new Uri("http://localhost:80/alfresco"), "Basic", new NetworkCredential("username", "password")); wb.Credentials = cc;