Username/password in JSON string?
#1
Is it possible to use a username/password combination when sending a JSON command to XBMC?

I currently do something like this, which works as long as there is no password/username entered in my XBMC settings:
http://192.168.1.55/jsonrpc?request={%22...%22id%22:1}

I have tried:
http://user:[email protected]/jsonrpc...etc. with n luck (obviously I've tested this with the actual user/password in XBMC)

I'm very new to JSON, and I'm making an app. The core functionality I need is working (thanks to this forum!), but only if the user has no user/password set up.

Any help would be appreciated.
Reply
#2
It all depends on what language / tool you use for sending the http query.

The auth is a simple http basic one, so all you need to do is add an header in your http query with the auth credentials correctly encoded in base64

Check : http://en.wikipedia.org/wiki/Basic_acces...entication
Reply
#3
(2012-11-11, 11:00)Tolriq Wrote: It all depends on what language / tool you use for sending the http query.

The auth is a simple http basic one, so all you need to do is add an header in your http query with the auth credentials correctly encoded in base64

Check : http://en.wikipedia.org/wiki/Basic_acces...entication

Thanks, Tolriq. It's a little over my head, but now that I know it can be done I should be able to implement it with a bit of work.
Reply

Logout Mark Read Team Forum Stats Members Help
Username/password in JSON string?0