mirror of
https://github.com/9001/copyparty.git
synced 2026-01-12 15:52:39 -07:00
Merge df1e3f3404 into 7357d46f43
This commit is contained in:
commit
ef5e585e20
|
|
@ -2686,6 +2686,8 @@ interact with copyparty using non-browser clients
|
||||||
`post movie.mkv`
|
`post movie.mkv`
|
||||||
* `chunk(){ curl -H pw:wark -T- http://127.0.0.1:3923/;}`
|
* `chunk(){ curl -H pw:wark -T- http://127.0.0.1:3923/;}`
|
||||||
`chunk <movie.mkv`
|
`chunk <movie.mkv`
|
||||||
|
* `search() { curl -H "Content-Type: application/json" -X POST --data '{"n":42,"q":"'"${1}"'"}' http://127.0.0.1:3923?srch; }`
|
||||||
|
`search 'name like *.jpg*'`
|
||||||
|
|
||||||
* curl: append to existing file with `?apnd`
|
* curl: append to existing file with `?apnd`
|
||||||
* `log(){ curl -H pw:wark -T- http://127.0.0.1:3923/logfile.txt?apnd;}`
|
* `log(){ curl -H pw:wark -T- http://127.0.0.1:3923/logfile.txt?apnd;}`
|
||||||
|
|
|
||||||
|
|
@ -207,9 +207,9 @@ clients can authenticate in the following ways; the first of these which is not
|
||||||
| GET | `?zls` | get listing of filepaths in zip file at URL |
|
| GET | `?zls` | get listing of filepaths in zip file at URL |
|
||||||
| GET | `?zget=path` | get specific file from inside a zip file at URL |
|
| GET | `?zget=path` | get specific file from inside a zip file at URL |
|
||||||
|
|
||||||
| method | body | result |
|
| method | params | body | result |
|
||||||
|--|--|--|
|
|--|--|--|--|
|
||||||
| jPOST | `{"q":"foo"}` | do a server-wide search; see the `[🔎]` search tab `raw` field for syntax |
|
| jPOST | `?srch` | `{"n":42,"q":"foo"}` | do a server-wide search; see the `[🔎]` search tab `raw` field for syntax |
|
||||||
|
|
||||||
| method | params | body | result |
|
| method | params | body | result |
|
||||||
|--|--|--|--|
|
|--|--|--|--|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue