Closed jues1991 closed 6 years ago
Need more information : what do you do exactly?
I never was able to get a successful reply from the api either.
$ curl -D - http://$u:$p@172.20.0.2:4080/api/1/downloads.json
HTTP/1.1 404 Not Found
Server: MLdonkey/3.1.5
Connection: close
Pragma: no-cache
Content-Type: text/html;charset=UTF-8
Content-length: 281
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><title>404 Not Found</title></head>
<h1>404 Not Found</h1>
The requested URL api/1/downloads.json was not found on this server.
<hr><address>MLDonkey/3.1.5 at 172.20.0.2 Port 4080</address></html></html>
Perusing the source code found some api references suggesting that are used with submit in the same way as 'q', but seems that are just the same as 'q'.
$ curl -D - "http://$u:$p@172.20.0.2:4080/submit?api=/api/1/downloads/all/pause.json"
HTTP/1.1 200 OK
Content-length: 48
No such command /api/1/downloads/all/pause.json
The submit
query works but is not as convenient.
$ curl "http://$u:$p@172.20.0.2:4080/submit?q=${command}"
api is in the branch https://github.com/ygrek/mldonkey/tree/api it was not merged into master
document: https://github.com/ygrek/mldonkey/blob/api/docs/api.md I use it in the document, always 404.