basic web info

Discussion of the Web Interface for Transmission, formerly known as Clutch. This applies to all version of Transmission
Post Reply
piranesi
Posts: 5
Joined: Fri Jan 02, 2009 1:25 pm

basic web info

Post by piranesi »

Hi All,

I'm a newbie on JSON but I want to make a very basic HTML so I can use my PDA to check the status of my torrents.
I don't need a real time bar, just a basic HTML showing a few items (name, finished or not, ..).

Can anyone help me? I looked at the RPC instructions but did not understand them. If I have some sort of a basic example I can work from there.

Thanks in advance!
piranesi
Posts: 5
Joined: Fri Jan 02, 2009 1:25 pm

Re: basic web info

Post by piranesi »

I'm starting to get something, an error!

What does the 409 error mean?

Thanks
piranesi
Posts: 5
Joined: Fri Jan 02, 2009 1:25 pm

Re: basic web info

Post by piranesi »

Anyone?

Nobody has a basic HTML with the header request (still don't how to handle this) that parses some simple informatie from the rpc.

I don't understand the JSON requests. I keep getting the 409 error.

Thanks!!!
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: basic web info

Post by Jordan »

The message in the body of that 409 error reads:
Your request had an invalid session-id header.

To fix this, follow these steps:

1. When reading a response, get its X-Transmission-Session-Id header and remember it
2. Add the updated header to your outgoing requests
3. When you get this 409 error message, resend your request with the updated header

This requirement has been added to help prevent CSRF attacks.
Also, the best way to test out what a json request should look like is to invoke transmission-remote to do the same command, but add the "--debug" argument. If you do this, it'll dump the json request to the terminal before sending it to Transmission.
piranesi
Posts: 5
Joined: Fri Jan 02, 2009 1:25 pm

Re: basic web info

Post by piranesi »

Thanks for the response!!!

torrent-remote -l --debug returns and got a list of arguments.

Now I realise, I have to invest more time in studying HTML and Javascript. I'm a newbie and this is abracadabra for me.

I want to make a windows Vista/Windows 7-sidebar-gadget-transmission-client.
I hoped there was a simple template/example of a HTML/javascript that connects to the RPC e.g. returns just a list of all torrents. If I got an example I can take it (with the little knowlegde I have) from there.

Thanks for your time!!
aetor
Posts: 1
Joined: Sun Nov 29, 2009 8:20 pm

Re: basic web info

Post by aetor »

since shorlty, i am using Opera Mobile 10 Beta on mine HTC TYNT II (win mob 6), And with this version I can use the webbased utility

So YES, with a pda / pocket pc manage Transmission is POSSIBLE :D

I am from the netherlands, so sorry for mine bad english.

mzzl

aetor
Post Reply