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
98c964e66f
commit
ccd20f1f3f
1 changed files with 9 additions and 9 deletions
|
@ -1,32 +1,32 @@
|
|||
# http
|
||||
|
||||
> HTTPie: HTTP client, aims to be easier to use than cURL.
|
||||
> More information: <https://httpie.org>.
|
||||
> HTTPie: HTTP client, ma być łatwiejszy w użyciu niż cURL.
|
||||
> Więcej informacji: <https://httpie.org>.
|
||||
|
||||
- Download a URL to a file:
|
||||
- Pobierz adres URL do pliku:
|
||||
|
||||
`http -d {{example.org}}`
|
||||
|
||||
- Send form-encoded data:
|
||||
- Wyślij dane zakodowane w formularzu:
|
||||
|
||||
`http -f {{example.org}} {{name='bob'}} {{profile_picture@'bob.png'}}`
|
||||
|
||||
- Send JSON object:
|
||||
- Wyślij obiekt JSON:
|
||||
|
||||
`http {{example.org}} {{name='bob'}}`
|
||||
|
||||
- Specify an HTTP method:
|
||||
- Określ metodę HTTP:
|
||||
|
||||
`http {{HEAD}} {{example.org}}`
|
||||
|
||||
- Include an extra header:
|
||||
- Dołącz dodatkowy nagłówek:
|
||||
|
||||
`http {{example.org}} {{X-MyHeader:123}}`
|
||||
|
||||
- Pass a user name and password for server authentication:
|
||||
- Podaj nazwę użytkownika i hasło do uwierzytelnienia serwera:
|
||||
|
||||
`http -a {{username:password}} {{example.org}}`
|
||||
|
||||
- Specify raw request body via `stdin`:
|
||||
- Określ surowe ciało żądania za pośrednictwem `stdin`:
|
||||
|
||||
`cat {{data.txt}} | http PUT {{example.org}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue