mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
update http
updated
This commit is contained in:
parent
7d5d9b7b85
commit
8c6141ea8d
1 changed files with 7 additions and 7 deletions
|
@ -5,28 +5,28 @@
|
|||
|
||||
- Pobierz adres URL do pliku:
|
||||
|
||||
`http -d {{example.org}}`
|
||||
`http -d {{przyklad.org}}`
|
||||
|
||||
- Wyślij dane zakodowane w formularzu:
|
||||
|
||||
`http -f {{example.org}} {{name='bob'}} {{profile_picture@'bob.png'}}`
|
||||
`http -f {{przyklad.org}} {{nazwa='bob'}} {{zdjecie_profilowe@'bob.png'}}`
|
||||
|
||||
- Wyślij obiekt JSON:
|
||||
|
||||
`http {{example.org}} {{name='bob'}}`
|
||||
`http {{przyklad.org}} {{name='bob'}}`
|
||||
|
||||
- Określ metodę HTTP:
|
||||
|
||||
`http {{HEAD}} {{example.org}}`
|
||||
`http {{HEAD}} {{przyklad.org}}`
|
||||
|
||||
- Dołącz dodatkowy nagłówek:
|
||||
|
||||
`http {{example.org}} {{X-MyHeader:123}}`
|
||||
`http {{przyklad.org}} {{X-MyHeader:123}}`
|
||||
|
||||
- Podaj nazwę użytkownika i hasło do uwierzytelnienia serwera:
|
||||
|
||||
`http -a {{username:password}} {{example.org}}`
|
||||
`http -a {{nazwauzytkownika:haslo}} {{przyklad.org}}`
|
||||
|
||||
- Określ surowe ciało żądania za pośrednictwem `stdin`:
|
||||
|
||||
`cat {{data.txt}} | http PUT {{example.org}}`
|
||||
`cat {{dane.txt}} | http PUT {{przyklad.org}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue