2010-03-21, 20:43
Sorry for the \\ you use phpcode tag i misunderstand
For the id in my .net implementation i use int i works well , and it's int also in the webinterface and the jsonrpc standard too it refer to the query id.
Looking at the jsonrpc code :
Can only send back a OK, so the problem seems not be tied to the method but to the way the server receive the full request.
Since no param check in the code the simple method :
In the log i got the request and no error but the return is an error -32602 strange...
For the directory it seems that it must be urlencoded from the jsonrpc source.
Just try :
For C:\ it should work also with : C%3A\ but it seems not
Just use C:/ and it will works
For the id in my .net implementation i use int i works well , and it's int also in the webinterface and the jsonrpc standard too it refer to the query id.
Quote:http_request.send("{\"jsonrpc\": \"2.0\", \"method\": \"Files.GetShares\", \"params\": { \"type\": \"music\" }, \"id\": 1}");
Looking at the jsonrpc code :
Quote:postdata = '{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovieInfo", "params": {"movieid": 11} , "id" : 1}'
Can only send back a OK, so the problem seems not be tied to the method but to the way the server receive the full request.
Since no param check in the code the simple method :
Quote:postdata = '{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovieInfo", "id" : 1}'Should work but it don"t
In the log i got the request and no error but the return is an error -32602 strange...
For the directory it seems that it must be urlencoded from the jsonrpc source.
Just try :
Quote:const string postData = "{\"jsonrpc\": \"2.0\", \"method\": \"Files.GetDirectory\", \"params\" : { \"type\" : \"files\", \"directory\" : \".\" }, \"id\": 1}";I just test this quickly it works well.
For C:\ it should work also with : C%3A\ but it seems not
Just use C:/ and it will works