Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

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.