mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-11 01:44:58 -06:00
Add "Get torrent pieces' hashes" section
@@ -15,6 +15,7 @@
|
||||
1. [Get torrent web seeds](#get-torrent-web-seeds)
|
||||
1. [Get torrent contents](#get-torrent-contents)
|
||||
1. [Get torrent pieces' states](#get-torrent-pieces-states)
|
||||
1. [Get torrent pieces' hashes](#get-torrent-pieces-hashes)
|
||||
1. [Get global transfer info](#get-global-transfer-info)
|
||||
1. [Get qBittorrent preferences](#get-qbittorrent-preferences)
|
||||
1. [Get partial data](#get-partial-data)
|
||||
@@ -454,7 +455,7 @@ Value | Description
|
||||
Requires knowing the torrent hash. You can get it from [torrent list](#get-torrent-list).
|
||||
|
||||
```http
|
||||
GET /query/getPieceStates/8c212779b4abde7c6bc608063a0d008b7e40ce32 HTTP/1.1
|
||||
GET /query/getPieceStates/8c212779b4abde7c6bc608063a0d008b7e40ce32 HTTP/1.1
|
||||
User-Agent: Fiddler
|
||||
Host: 127.0.0.1
|
||||
Cookie: SID=your_sid
|
||||
@@ -491,6 +492,37 @@ Value | Description
|
||||
|
||||
Requires knowing the torrent hash. You can get it from [torrent list](#get-torrent-list).
|
||||
|
||||
```http
|
||||
GET /query/getPieceHashes/8c212779b4abde7c6bc608063a0d008b7e40ce32 HTTP/1.1
|
||||
User-Agent: Fiddler
|
||||
Host: 127.0.0.1
|
||||
Cookie: SID=your_sid
|
||||
```
|
||||
|
||||
If your torrent hash is invalid server will reply with:
|
||||
|
||||
```http
|
||||
HTTP/1.1 200 OK
|
||||
content-type: application/json
|
||||
content-length: 0
|
||||
```
|
||||
|
||||
Otherwise server will return the following reply (example):
|
||||
|
||||
```http
|
||||
HTTP/1.1 200 OK
|
||||
content-type: application/json
|
||||
content-length: length
|
||||
|
||||
```
|
||||
|
||||
### Get global transfer info ###
|
||||
|
||||
This method returns info you usually see in qBt status bar.
|
||||
|
||||
```http
|
||||
GET /query/transferInfo HTTP/1.1
|
||||
User-Agent: Fiddler
|
||||
Host: 127.0.0.1
|
||||
Cookie: SID=your_sid
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user