Subject: | Net::uTorrent doesn't deal with cookies. |
In newer uTorret Web API releases, cookies are *required* and no longer
optional. Since Net:uTorrent doesn't deal with them, it no longer works
(See http://forum.utorrent.com/viewtopic.php?id=111446). This is bad.
The fix is pretty straightforward though:
use HTTP::Cookies;
$ua->cookie_jar(HTTP::Cookies::Netscape->new('file' =>
$utorrent_cookie_file ));
Where $utorrent_cookie_file should be set to something intelligent based
on the user's environment. I set it to /tmp/utorrent_cookies manually
and it works fine in my (Ubuntu Lucid) environment.