Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl --user 1111:11111 --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "liststreamkeyitems", "params": ["uuid", "47BAC1BC-7CDD-11E7-A05F-BEC4E557EFC0", false,1, -1] }' -H 'content-type: text/plain;' http://127.0.0.1:1121
- my $URL = Mojo::URL->new("http://127.0.0.1:4388")->userinfo("1111:11111");
- my $ua = Mojo::UserAgent->new;
- my $res = $ua->get($URL => json => {"jsonrpc" => "1.0", "id" => "curltest","method" => "liststreamkeyitems", "params" => ["uuid","47BAC1BC-7CDD-11E7-A05F-BEC4E557EFC0",false,1,-1]})->result->json;
- I get error 'Invalid parameter value type, should be boolean'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement