http: update to example.com
And also fix a minor typo
This commit is contained in:
@@ -4,28 +4,28 @@
|
|||||||
|
|
||||||
- Send a GET request (default method with no request data):
|
- Send a GET request (default method with no request data):
|
||||||
|
|
||||||
`http {{https://api.github.com/users}}`
|
`http {{https://example.com}}`
|
||||||
|
|
||||||
- Send a POST request (default method with request data):
|
- Send a POST request (default method with request data):
|
||||||
|
|
||||||
`http {{example.org}} {{hello=World}}`
|
`http {{https://example.com}} {{hello=World}}`
|
||||||
|
|
||||||
- Send a POST request with redirected input:
|
- Send a POST request with redirected input:
|
||||||
|
|
||||||
`http {{example.org}} < {{file.json}}`
|
`http {{https://example.com}} < {{file.json}}`
|
||||||
|
|
||||||
- Send a PUT request with a given json body:
|
- Send a PUT request with a given json body:
|
||||||
|
|
||||||
`http PUT {{httpbin.org/put}} {{hello=world}}`
|
`http PUT {{https://example.com/todos/7}} {{hello=world}}`
|
||||||
|
|
||||||
- Send a DELETE request with a giben header:
|
- Send a DELETE request with a given request header:
|
||||||
|
|
||||||
`http DELETE {{example.org/todos/7}} {{API-Key:foo}}`
|
`http DELETE {{https://example.com/todos/7}} {{API-Key:foo}}`
|
||||||
|
|
||||||
- Show the whole HTTP exchange (both request and response):
|
- Show the whole HTTP exchange (both request and response):
|
||||||
|
|
||||||
`http -v {{example.org}}`
|
`http -v {{https://example.com}}`
|
||||||
|
|
||||||
- Download a file:
|
- Download a file:
|
||||||
|
|
||||||
`http --download {{example.org}}`
|
`http --download {{https://example.com}}`
|
||||||
|
Reference in New Issue
Block a user