Hi there
I hate to ask this question - but I've found no answer to this one in the forum:
Where does jsonrpc.js or its equivalent reside on mysqueezebox.com?
And on which port is it listening?
Cheers
Sebastian
Results 1 to 10 of 10
Thread: jsonrpc.js on mysqueezebox.com
Hybrid View
-
2010-12-13, 15:25 #1
jsonrpc.js on mysqueezebox.com
Use your PDA/Phone as SqueezeBox remote -- http://sc.sciatec.de
-
2010-12-13, 20:40 #2
-
2010-12-14, 01:27 #3
Hello Handy
I've been trying to get in touch with that same address.
On port 80 and 9000 - no successs.
The requests simply time out.
Username and password are the same as in the www portal login?
I just post the HTTP command I'm sending out.
Maybe you'll see something:
#Connect to: [79.125.21.137:9000]
POST /jsonrpc.js HTTP/1.1
Host:79.125.21.137
Content-type:application/json
Content-length:72
Authorization: Basic c2JAc2NpYXRlYy5kZTphdXRvNDQ=
{"id":1,"method":"slim.request","params":["",["serverstatus","0","10"]]}Use your PDA/Phone as SqueezeBox remote -- http://sc.sciatec.de
-
2010-12-14, 01:41 #4
On port 80 I am getting the following response:
[...]
Location: /user/login?redirect=jsonrpc.js
Content-Length: 104
Status: 302
<html><body><p>This item has moved <a href="/user/login?redirect=jsonrpc.js">here</a>.</p></body></html>
It's much easier to debug when you have at least confidence in the server address :-)Use your PDA/Phone as SqueezeBox remote -- http://sc.sciatec.de
-
2010-12-14, 01:55 #5
You'll need to send the session cookie with every request to jsonrpc. I actually don't know whether there is an authentication call on that interface. But you can authenticate against the /user/login url you have been redirected to. Just POST username and password (look at that page's source for details). If you do it in a ajax call, your app won't load all the images anyway.
-
2010-12-14, 09:23 #6
Hi Michael
I am doing no ajax. I'm just sending a HTTP POST request to the jsonrpc.js script. The content of the request being my json string.
I was hoping mysqueezebox.com respsonds in the same way my SB server respsonds. I.e. in json.
I am still not sure whether this is supposed to be on port 80 0or 9000?Use your PDA/Phone as SqueezeBox remote -- http://sc.sciatec.de

Reply With Quote

