mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02: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:
|
- Pobierz adres URL do pliku:
|
||||||
|
|
||||||
`http -d {{example.org}}`
|
`http -d {{przyklad.org}}`
|
||||||
|
|
||||||
- Wyślij dane zakodowane w formularzu:
|
- 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:
|
- Wyślij obiekt JSON:
|
||||||
|
|
||||||
`http {{example.org}} {{name='bob'}}`
|
`http {{przyklad.org}} {{name='bob'}}`
|
||||||
|
|
||||||
- Określ metodę HTTP:
|
- Określ metodę HTTP:
|
||||||
|
|
||||||
`http {{HEAD}} {{example.org}}`
|
`http {{HEAD}} {{przyklad.org}}`
|
||||||
|
|
||||||
- Dołącz dodatkowy nagłówek:
|
- 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:
|
- 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`:
|
- 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