使用 CURL
:
curl --header "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"aria2.addUri","id":1,"params":["token:your-secret-key",["https://example.com/test.mp4"]]}' http://localhost:6800/jsonrpc
{"id":1,"jsonrpc":"2.0","result":"7cb7582fbecdbc6e"}