I am wondering if anyone knows how to use the bittorrent capabilities of the Bubba server via either the command line or an API (if there is one). I would like to create a browser plugin that will automatically add torrent files into the download list.
Any ideas?
Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !
Bittorrent usage via the command line or an API
Hi,
We actually have this feature quite high on our wanted feature list. Only lack of time has stopped us from doing this
It would be quite easy to implement this as a firefox plugin or perhaps even as a greasemonkey script.
But to provide some info on how this could be done. I think the easiest way to talk to the download manager is by doing regular http posts to the scripts.
You have to do two things to get this working.
First you have to authenticate yourself. This is simplest done by posting to say index.php with the parameters uid set to your username, passwd set to your password and submit set to anything you like. Depending on how you do this you might have to collect the cookie, PHPSESSID, that gets sent here.
Then to add a download do a post, with the cookie you got when logging in provided, to the script downloads.php with the parameters add_download set to "Add", url set to the url that you want to download, uuid to a guaranteed unique identifier prefixed with the string "ftd".
Then to log out, do a post to index.php with the parameter logout set to anything.
A few example using wget. Every example should be entered on one line.
Login:
Add download:
Log out:
/Tor
We actually have this feature quite high on our wanted feature list. Only lack of time has stopped us from doing this

But to provide some info on how this could be done. I think the easiest way to talk to the download manager is by doing regular http posts to the scripts.
You have to do two things to get this working.
First you have to authenticate yourself. This is simplest done by posting to say index.php with the parameters uid set to your username, passwd set to your password and submit set to anything you like. Depending on how you do this you might have to collect the cookie, PHPSESSID, that gets sent here.
Then to add a download do a post, with the cookie you got when logging in provided, to the script downloads.php with the parameters add_download set to "Add", url set to the url that you want to download, uuid to a guaranteed unique identifier prefixed with the string "ftd".
Then to log out, do a post to index.php with the parameter logout set to anything.
A few example using wget. Every example should be entered on one line.
Login:
Code: Select all
wget -o /dev/null --no-check-certificate --keep-session-cookies --save-cookies cookies.txt --post-data='submit=yes&uid=myusername&passwd=mypassword' https://bubba/web-admin/index.php
Code: Select all
wget -o /dev/null --no-check-certificate --load-cookies cookies.txt --post-data='add_download=Add&uuid=ftd46d7d30bc6a1f&url=http://update.excito.net/install/minimal/bubba.img' https://bubba/web-admin/downloads.php
Code: Select all
wget -o /dev/null --no-check-certificate --load-cookies cookies.txt --post-data='logout=yes' https://bubba/web-admin/index.php
Co-founder OpenProducts and Ex Excito Developer
bittorent using php and mysql
There is a bittorrent client, that runs over web
using only PHP any MYSQL.
It is called TorrentFlux.
I will try to install it soon, and see if it works
using only PHP any MYSQL.
It is called TorrentFlux.
I will try to install it soon, and see if it works

Co-founder OpenProducts and Ex Excito Developer