MrAmineOfficial / rapidleech

Automatically exported from code.google.com/p/rapidleech
0 stars 0 forks source link

Patch for /trunk/classes/http.php #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
call back function for checking before download avoiding download html file

Original issue reported on code.google.com by vuduyho...@gmail.com on 26 Sep 2011 at 5:57

Attachments:

GoogleCodeExporter commented 8 years ago
... Not all hosts uses download links with their domain (or subdomain), some 
hosts sends the ip of the server.

And checking the headers of the download link it's useless with many hosts.

No checking is needed if plugin can get the dlink and the data needed to send.
If the site requires other actions on download link it should be cookies, auth 
or headers, and that can be sended without adding more functions.

Original comment by hedel822 on 27 Sep 2011 at 3:46

GoogleCodeExporter commented 8 years ago
you are right, some host use IP not subdomain and domain.
you are right cookies, auth , headers is necessary and enough for make a 
request to filehost.
This function is used when you receive a response from filehost not make a 
request.
At first i do it to try resolve wrong captcha with easy-share plugin, but now i 
think it 's not bad to use this function to statistic/limit Bandwidth for 
filehosting, limit forbidden/edit filename. it can be used to replace some 
script we are using to check filesize limit, prefix , suffix and this OOP is 
much better, that is my though

Original comment by vuduyho...@gmail.com on 27 Sep 2011 at 4:31

GoogleCodeExporter commented 8 years ago
Still, non OOP user cant use this feature, can we developed so they can use 
this too? Just my opinion, :D

Dont mad at me, I know I'm a dumb, but I've try several time to make this can 
be used for non OOP user but still no luck, ...  

Original comment by ruudvtony on 29 Sep 2011 at 12:09

GoogleCodeExporter commented 8 years ago
non benefit for non OOP plugin, it 's non benefit when using at general 
function, if you want do that put your script at which block code where i added 
my patched code

Original comment by vuduyho...@gmail.com on 29 Sep 2011 at 1:35