2015-02-03, 07:00
Hi guys. I'm trying to run a query using curl, got one of the examples:
curl http://host:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": { "filter": {"field": "playcount", "operator": "is", "value": "0"}, "limits": { "start" : 0, "end": 75 }, "properties" : ["art", "rating", "thumbnail", "playcount", "file"], "sort": { "order": "ascending", "method": "label", "ignorearticle": true } }, "id": "libMovies"}
curl: (3) [globbing] unmatched brace in column 36
curl: (6) Could not resolve host: 2.0,
curl: (6) Could not resolve host: method
curl: (6) Could not resolve host: VideoLibrary.GetMovies,
curl: (6) Could not resolve host: params
curl: (3) [globbing] unmatched brace in column 1
curl: (6) Could not resolve host: filter
curl: (3) [globbing] unmatched brace in column 1
curl: (6) Could not resolve host: playcount,
curl: (6) Could not resolve host: operator
curl: (6) Could not resolve host: is,
curl: (6) Could not resolve host: value
curl: (3) [globbing] unmatched close brace/bracket in column 2
curl: (6) Could not resolve host: limits
curl: (3) [globbing] unmatched brace in column 1
curl: (6) Could not resolve host: start
curl: (6) Could not resolve host:
curl: (6) Could not resolve host: 0,
curl: (6) Could not resolve host: end
curl: (7) Could not resolve host: end
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (6) Could not resolve host: properties
curl: (6) Could not resolve host:
curl: (3) [globbing] bad range in column 6
curl: (6) Could not resolve host: rating,
curl: (6) Could not resolve host: thumbnail,
curl: (6) Could not resolve host: playcount,
curl: (3) [globbing] unmatched close brace/bracket in column 5
curl: (6) Could not resolve host: sort
curl: (3) [globbing] unmatched brace in column 1
curl: (6) Could not resolve host: order
curl: (6) Could not resolve host: ascending,
curl: (6) Could not resolve host: method
curl: (6) Could not resolve host: label,
curl: (6) Could not resolve host: ignorearticle
curl: (6) Could not resolve host: true
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (6) Could not resolve host: id
curl: (3) [globbing] unmatched close brace/bracket in column 10
Have no idea what to do next. Any tips?
Thanks.
curl http://host:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": { "filter": {"field": "playcount", "operator": "is", "value": "0"}, "limits": { "start" : 0, "end": 75 }, "properties" : ["art", "rating", "thumbnail", "playcount", "file"], "sort": { "order": "ascending", "method": "label", "ignorearticle": true } }, "id": "libMovies"}
curl: (3) [globbing] unmatched brace in column 36
curl: (6) Could not resolve host: 2.0,
curl: (6) Could not resolve host: method
curl: (6) Could not resolve host: VideoLibrary.GetMovies,
curl: (6) Could not resolve host: params
curl: (3) [globbing] unmatched brace in column 1
curl: (6) Could not resolve host: filter
curl: (3) [globbing] unmatched brace in column 1
curl: (6) Could not resolve host: playcount,
curl: (6) Could not resolve host: operator
curl: (6) Could not resolve host: is,
curl: (6) Could not resolve host: value
curl: (3) [globbing] unmatched close brace/bracket in column 2
curl: (6) Could not resolve host: limits
curl: (3) [globbing] unmatched brace in column 1
curl: (6) Could not resolve host: start
curl: (6) Could not resolve host:
curl: (6) Could not resolve host: 0,
curl: (6) Could not resolve host: end
curl: (7) Could not resolve host: end
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (6) Could not resolve host: properties
curl: (6) Could not resolve host:
curl: (3) [globbing] bad range in column 6
curl: (6) Could not resolve host: rating,
curl: (6) Could not resolve host: thumbnail,
curl: (6) Could not resolve host: playcount,
curl: (3) [globbing] unmatched close brace/bracket in column 5
curl: (6) Could not resolve host: sort
curl: (3) [globbing] unmatched brace in column 1
curl: (6) Could not resolve host: order
curl: (6) Could not resolve host: ascending,
curl: (6) Could not resolve host: method
curl: (6) Could not resolve host: label,
curl: (6) Could not resolve host: ignorearticle
curl: (6) Could not resolve host: true
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (6) Could not resolve host: id
curl: (3) [globbing] unmatched close brace/bracket in column 10
Have no idea what to do next. Any tips?
Thanks.