Httpie 치트 시트
5100 단어 cheatsheethttpie
참고문헌
옵션
인쇄 옵션
-v, --verbose # same as --print=HhBb --all
-h, --headers # same as --print=h
-b, --body # same as --print=b
--all # print intermediate requests
--print=HhBb # H: request headers
# B: request body
# h: response headers
# b: response body
--pretty=none # all | colors | format
--json | -j # Response is serialized as a JSON object.
입증
--session NAME
-a, --auth USER:PASS
--auth-type basic
--auth-type digest
세션
--session NAME # store auth and cookies
--session-read-only NAME
다운로드 중
-d, --download # like wget
-c, --continue
-o, --output FILE
기타
-F, --follow # follow redirects
--max-redirects N # maximum for --follow
--timeout SECONDS
--verify no # skip SSL verification
--proxy http:http://foo.bar:3128
원시 JSON
$ echo '{"hello": "world"}' | http POST example.com/post
양식
$ http --form POST example.com \
name="John Smith" \
cv=@document.txt
매개변수
$ http POST http://example.com/posts/3 \
Origin:example.com \ # : HTTP headers
name="John Doe" \ # = string
q=="search" \ # == URL parameters (?q=search)
age:=29 \ # := for non-strings
list:='[1,3,4]' \ # := json
[email protected] \ # @ attach file
token=@token.txt \ # =@ read from file (text)
user:=@user.json # :=@ read from file (json)
소개
HTTPie 명령줄 HTTP 클라이언트입니다.
Reference
이 문제에 관하여(Httpie 치트 시트), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/hoanganhlam/httpie-cheat-sheet-glp텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)