update http

updated
client-spec/clarity
Michal 2020-04-15 19:30:37 +02:00 committed by Starbeamrainbowlabs
parent 98c964e66f
commit ccd20f1f3f
1 changed files with 9 additions and 9 deletions

View File

@ -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}}`