2013-03-16, 08:05
@Montellese:
Is there any reason why the Files.PrepareDownload method is not supported ("Method not found") while using TCP sockets?
However the same request works fine over HTTP.
I realise that to download the image HTTP must be used (redirect), but I'm just wondering why this particular method is not working over sockets and thus has to be special cased (switching to HTTP for this method alone).
Is there any reason why the Files.PrepareDownload method is not supported ("Method not found") while using TCP sockets?
Code:
{"jsonrpc": "2.0", "params": {"path": "image://nfs%3a%2f%2f192.168.0.3%2fmnt%2fshare%2fmedia%2fVideo%2fMovies%2fBad%20Santa%20(2003)%5bDirectors%20Cut%5d%5bDVDRip%5d-fanart.jpg/"}, "method": "Files.PrepareDownload", "id": "1"}
{"error":{"code":-32601,"message":"Method not found."},"id":"1","jsonrpc":"2.0"}
However the same request works fine over HTTP.
I realise that to download the image HTTP must be used (redirect), but I'm just wondering why this particular method is not working over sockets and thus has to be special cased (switching to HTTP for this method alone).