This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Username:Password Access

Tags: None
(comma "," separated)
stevenofnine
Registered Member
Posts
62
Karma
0

Username:Password Access

Wed Jul 25, 2007 3:22 pm
It's possible, via the remote interface for other clients, to load a torrent via the Username:Password URL. Ex:

http://Username:Password@tracker.com/to ... le.torrent

For when a tracker is private. My work computers will not download any file identified as having the .torrent file extension, so I can't download to my machine at work, then upload to my box at home.

I have been unable to load torrents using KTorrent via the URL box in the interface of the webinterface using Username:password, although direct links are easy, of course.

Can we have this enabled/implemented in future versions?

Thanks.
George
Moderator
Posts
5421
Karma
1

Wed Jul 25, 2007 5:06 pm
Does this also not work when you open the URL directly with ktorrent (via a shell or file -> paste torrent URL) ?
stevenofnine
Registered Member
Posts
62
Karma
0

Wed Jul 25, 2007 5:40 pm
George, I'm not sure, I've never done that.

I'll try and remember to do so when I get home. I always use my browser (Firefox), and let that send the .torrent to KTorrent.
stevenofnine
Registered Member
Posts
62
Karma
0

Thu Jul 26, 2007 12:22 am
When I use the 'correct' protocol, I get this error:

An error occurred while loading the torrent. The torrent is probably corrupt or is not a torrent file.

I can load un-user-password protected links in easily. It's possible the site doesn't permit this. I'll check.
George
Moderator
Posts
5421
Karma
1

Fri Jul 27, 2007 11:35 am
OK, then we must check this out, I guess I can probably test this with a local apache server.

Btw, what do you get back when you do this in a shell :

wget http://Username:Password@tracker.com/to ... le.torrent
ktorrent torrentfile.torrent
stevenofnine
Registered Member
Posts
62
Karma
0

Mon Jul 30, 2007 2:45 pm
George,
I've tried the above on three different sites, none will allow me to load. Will use your Shell command on return home.
I'll check that out when I get home. You mean for me to use actual files and torrent sites, right, not the literal text you wrote?
George
Moderator
Posts
5421
Karma
1

Mon Jul 30, 2007 4:55 pm
stevenofnine wrote:George,
I've tried the above on three different sites, none will allow me to load. Will use your Shell command on return home.
I'll check that out when I get home. You mean for me to use actual files and torrent sites, right, not the literal text you wrote?


Obviously with real URL's, otherwise it's not gonna work.
George
Moderator
Posts
5421
Karma
1

Mon Jul 30, 2007 5:15 pm
OK, I just setup a password protected apache server, and if I open http://user:password@127.0.0.1/torrrents/test.torrent with ktorrent it works without problems.

So I'm really interested in what results you get with wget.
stevenofnine
Registered Member
Posts
62
Karma
0

Tue Jul 31, 2007 2:12 am
Here's what the Shell put out. After all this, I had a torrentfile.torrent in my default Home directory.

[steven@laptop ~]$ wget http://user:password@tracker.com/torrentfile.torrent ktorrent torrentfile.torrent
--20:58:39-- http://user:*password*@tracker.com/torrentfile.torrent ktorrent torrentfile.torrent'
Resolving tracker.com... 74.xx.xx.xx
Connecting to tracker.com|74.xx.xx.xx|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 37,683 (37K) [application/x-bittorrent]

100%[====================================>] 37,683 --.--K/s

20:58:55 (549.68 KB/s) - `torrentfile.torrent ktorrent torrentfile.torrent' saved [37683/37683]

[steven@laptop ~]$


Note: I did not receive a notice that KTorrent was already running. And KTorrent did NOT open the file.
//EDIT It's occurring to me that that was 2 lines of code, not one?
George
Moderator
Posts
5421
Karma
1

Wed Aug 01, 2007 4:27 pm
Yeah 2 lines,

If it doesn't load in in ktorrent, then open it with a text editor. Chances are, it probably is a html error page.

My guess is that the sites you are trying this on have a normal login thing, like most websites do. Which makes what you are trying to do impossible.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]