Hello
I am using form based authentication. I want to download pdf files and for that I am using following code. It seems to be working but when I try to open or save pdf document it always showing 89 or 99 kb with out and giving error in acrobat i.e. "
Adobe Reader couldn't open "invoice__2009[1].pdf because it is either not supported file type or because the file has been damaged(for example it was sent as an email attachment and wasn't correctly decoded)"
Please let me know whats wrong I am doing?
string loginUri = "https://portal.domain.com/documentlib/"+pdfFileName;
string username = "username";
string password = "password@123";
string reqString = "username=" + username + "&password=" + password;
byte[] requestData = Encoding.UTF8.GetBytes(loginUri);
CookieContainer cc = new CookieC ...
Go to the complete details ...