일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- centos 8
- ansible
- ssh key 배포
- Elasticsearch
- 보안양파
- ELASTIC
- Kibana server is not ready yet
- macos
- xe guest utilities
- GitLab
- 로그인불가
- application security
- Proxy
- G-suite
- XCP-ng
- elastic stack
- freebsd
- endpoint security
- x-pack
- bash
- pfsense
- docker
- Windows
- proxycfg
- hardening
- PlayBook
- miniconda
- 한글가이드
- Kibana
- Today
- Total
선 밖에 선 자유인
httpie 기본 테스트 본문
출처:
HTTPie 2.0.0 (latest) documentation
CLI HTTP that will make you smile. JSON support, syntax highlighting, wget-like downloads, extensions, and more.
httpie.org
https://httpie.org/#installation
Custom HTTP method, HTTP headers and JSON data:
$ http PUT example.org X-API-Token:123 name=John
Submitting forms:
$ http -f POST example.org hello=World
See the request that is being sent using one of the output options:
$ http -v example.org
Use Github API to post a comment on an issue with authentication:
$ http -a USERNAME POST https://api.github.com/repos/jakubroztocil/httpie/issues/83/comments body='HTTPie is awesome! :heart:'
Upload a file using redirected input:
$ http example.org < file.json
Download a file and save it via redirected output:
$ http example.org/file > file
Download a file wget style:
$ http --download example.org/file
Use named sessions to make certain aspects or the communication persistent between requests to the same host:
$ http --session=logged-in -a username:password httpbin.org/get API-Key:123
$ http --session=logged-in httpbin.org/headers
Set a custom Host header to work around missing DNS records:
$ http localhost:8000 Host:example.com
Authentication
$ http -a foo:bar https://<URL>
Skip certificate check
$ http --verify=no -a foo:bar https://<URL>