SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to download file (.docx) from sharepoint 2007 library with webclient.downloadfile()... SharePoint Webapp has SSL enabled. I get 401 Unauthorized exception when trying to download the file.

Is it even possible to use webclient with SSL?

Resolution for this might be to use copy.asmx "ootb" webservice to download the file...

I can put some code samples tomorrow when I am at work.

Thanks advance!

share|improve this question
up vote 0 down vote accepted

I found a solution for this problem.

http://couldbedone.blogspot.com/2007/08/webclient-handling-cookies.html

CookieAwareWebClient did the trick...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.