C#/.Net Download file from premium rapidshare account

Posted by Simon on Stack Overflow See other posts from Stack Overflow or by Simon
Published on 2010-03-18T15:56:42Z Indexed on 2010/03/18 16:01 UTC
Read the original article Hit count: 651

Filed under:
|
|

Hello, how can I log to premium rapidshare account from my source? I tryed this but it is not working:

string authInfo = "name" + ":" + "pass";
authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo));
client.Headers["Authorization"] = "Basic " + authInfo;

client.DownloadFile("url", "C:\\Temp\\aaaa.file");

OR

WebClient client = new WebClient();

client.Credentials = new NetworkCredential("name", "pass");

client.DownloadFile("url", "C:\\Temp\\aaaa.file");

Is there any simple way how download the file directly from rapidshare premium?

Thank you a lot! Regards, simon

© Stack Overflow or respective owner

Related posts about c#

Related posts about rapidshare