Closed GoogleCodeExporter closed 9 years ago
Please could you explain what this cookie download feature is?
Thanks :)
Original comment by lemonbe...@gmail.com
on 26 May 2008 at 6:06
I use it for the "Add URL" feature to download torrents from private torrent
sites.
The private sites require a login so unless you have the cookie it won't
download
from that site.
Example cookie:
host - www.torrentbytes.net
value - uid=11111;passwd=11111aaaaaa22222222
Original comment by nate.wheeler
on 26 May 2008 at 6:44
Ah, now I understand :)
Agree this will be a very useful feature, and will incorporate it into next
version...
Thanks for supplying the code.
-Simon.
Original comment by lemonbe...@gmail.com
on 26 May 2008 at 7:48
Hi
I've been looking at incorporating this code, but there's one problem:- the
curl
dependency.
Anyone like to comment on methods of downloading using stored cookie values
without
using the curl library?
I feel rtGui is already quite heavy on requirments, and don't wish to add any
more.
That's the reason why so far I've avoided storing information in mySQL
databases,
etc.
Original comment by lemonbe...@gmail.com
on 10 Jun 2008 at 9:16
Very useful feaure, thanks
Original comment by dymofo
on 11 Jun 2008 at 6:44
This will just download the torrent and write it to a file. Its very simple
example,
but works.
$params = array('http' => array(
'method' => 'GET',
'header' => "Cookie: uid=123456; pass=1111112222222233333333;\r\n"
));
$context = stream_context_create($params);
$url = "https://www.example.com/file.torrent";
$contents = file_get_contents($url, false, $context);
$torrent = fopen("/watch-torrents/" . md5($url) . ".torrent", "w");
fwrite($torrent, $contents);
fclose($torrent);
Original comment by nate.wheeler
on 14 Jun 2008 at 10:15
Original comment by lemonbe...@gmail.com
on 5 Dec 2008 at 10:29
Original issue reported on code.google.com by
nate.wheeler
on 25 May 2008 at 6:08Attachments: