httpie: move to common; https: add alias page (#13492)
* httpie: delete osx page, move linux page to common Someone copied the linux page to osx instead of putting it in common. * https: add alias page
This commit is contained in:
36
pages.nl/common/httpie.md
Normal file
36
pages.nl/common/httpie.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# httpie
|
||||
|
||||
> Een gebruiksvriendelijke HTTP-tool.
|
||||
> Meer informatie: <https://github.com/httpie/httpie>.
|
||||
|
||||
- Verstuur een GET-verzoek (standaardmethode zonder verzoekgegevens):
|
||||
|
||||
`http {{https://example.com}}`
|
||||
|
||||
- Verstuur een POST-verzoek (standaardmethode met verzoekgegevens):
|
||||
|
||||
`http {{https://example.com}} {{hello=World}}`
|
||||
|
||||
- Verstuur een POST-verzoek met omgeleide invoer:
|
||||
|
||||
`http {{https://example.com}} < {{bestand.json}}`
|
||||
|
||||
- Verstuur een PUT-verzoek met een opgegeven JSON-body:
|
||||
|
||||
`http PUT {{https://example.com/todos/7}} {{hello=world}}`
|
||||
|
||||
- Verstuur een DELETE-verzoek met een opgegeven verzoekheader:
|
||||
|
||||
`http DELETE {{https://example.com/todos/7}} {{API-Key:foo}}`
|
||||
|
||||
- Toon de hele HTTP-uitwisseling (zowel verzoek als antwoord):
|
||||
|
||||
`http -v {{https://example.com}}`
|
||||
|
||||
- Download een bestand:
|
||||
|
||||
`http --download {{https://example.com}}`
|
||||
|
||||
- Volg redirects en toon tussenliggende verzoeken en antwoorden:
|
||||
|
||||
`http --follow --all {{https://example.com}}`
|
Reference in New Issue
Block a user