mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 02:36:15 +03:00
Updated WebUI API Documentation (markdown)
parent
e55adac265
commit
23f86fcd51
1 changed files with 3 additions and 1 deletions
|
@ -103,7 +103,7 @@ You must supply the cookie whenever you want to perform an operation that requir
|
|||
|
||||
Example showing how to login and execute a command that requires authentication using `curl`:
|
||||
```sh
|
||||
$ curl -i --data "username=admin&password=admin" http://localhost:8080/login
|
||||
$ curl -i --header 'Referer: http://localhost:8080' --data 'username=admin&password=adminadmin' http://localhost:8080/login
|
||||
HTTP/1.1 200 OK
|
||||
Content-Encoding:
|
||||
Content-Length: 3
|
||||
|
@ -112,6 +112,8 @@ Set-Cookie: SID=hBc7TxF76ERhvIw0jQQ4LZ7Z1jQUV0tQ; path=/
|
|||
$ curl http://localhost:8080/query/torrents --cookie "SID=hBc7TxF76ERhvIw0jQQ4LZ7Z1jQUV0tQ"
|
||||
```
|
||||
|
||||
Note: Set `Referer` or `Origin` header to the exact same domain and port as used in the HTTP query `Host` header.
|
||||
|
||||
### Logout ###
|
||||
|
||||
```http
|
||||
|
|
Loading…
Reference in a new issue