siddscool19 Posted January 19, 2009 Share Posted January 19, 2009 I want to know how to stream a file from a server while it is being downloaded by the user....... Basically what I want to do is login into a server like say rapidshare and stream file from there and make it available for the user such that user downloads file directly from the rapidshare server and without himself logging into account.. I don't want to copy file first to my server and then make it avaiable for download. So how should I procede on this...... We can login into a rapidshare url using http://username:pass .... If I am not much clear please tell me and also I want this to setup rs premium generator for my site so that people can download files using premium account..... I have nothing bad in this Quote Link to comment Share on other sites More sharing options...
kmaid Posted January 19, 2009 Share Posted January 19, 2009 Have you seen rapidleach? If you are looking to achive the same thing i suggest you alter the header and then print out the contents of the file which will "stream" the file through your server. This could use allot of bandwidth and may be restricted on shared hosts. http://www.webmasterworld.com/forum88/3765.htm If memory serves me correctly you should just be able to fopen the file using the full address *shrugs* Quote Link to comment Share on other sites More sharing options...
siddscool19 Posted January 20, 2009 Author Share Posted January 20, 2009 Basically I would like to know how to use cookies with fopen or copy() so that we can download files from a server on which we have to login first Also is it easy to understand rapidleech I think it requires a lot experience Quote Link to comment Share on other sites More sharing options...
kmaid Posted January 21, 2009 Share Posted January 21, 2009 I find the best way to learn is to read code from open source applications and understand how it works not that i know if rapidleach is open source! I am sorry i have not done something like this before however it has interested me so take what i say with a pinch of salt ! If you need to simulate logging in by a user try using CURL. That will allow you to post username and password and then can print the response while it receives it. When i first used the Curl libary it was a learning process but turns out it is quite easy to use! I would take a look at rapidleach anyway to see how they do it. Even if you don't understand everything it should at least point you in the right direction. Good luck! Quote Link to comment Share on other sites More sharing options...
siddscool19 Posted January 22, 2009 Author Share Posted January 22, 2009 Thanks for your reply I will surely try getting up with rapidleech and if I am not able to get I am sure we can get help from this place Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.