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?
Results 1 to 10 of 10
Thread: jsonrpc.js on mysqueezebox.com
2010-12-13, 15:25 #1
jsonrpc.js on mysqueezebox.com
2010-12-13, 20:40 #2
2010-12-14, 01:27 #3
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: [220.127.116.11:9000]
POST /jsonrpc.js HTTP/1.1
Authorization: Basic c2JAc2NpYXRlYy5kZTphdXRvNDQ=
2010-12-14, 01:41 #4
On port 80 I am getting the following response:
<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 :-)
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.Michael
http://www.herger.net/slim-plugins - AlbumReview, Biography, MusicInfoSCR, Smart Mix
2010-12-14, 09:23 #6
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?