-
windows / linux : cURLOS/Shell 명령어 2023. 12. 10. 22:36
https://johngrib.github.io/wiki/cmd/curl/
curl 명령어
transfer a URL
johngrib.github.io
요청 보내기
옵션 없이 사용
curl https://www.zhyun.kim요청, 응답 데이터 모두 출력
curl -v https://www.zhyun.kimheader 지정
curl \ -H 'Content-Type: text/html; charset=UTF=8' \ -H 'X-AUTH-TOKEN: hbsfdjkvKQLH23ZF' \ https://www.zhyun.kimPOST 요청 보내기
curl -X POST https://www.naver.comjson 데이터 함께 보내기
curl \ -X POST -d '{"name":"kim"}' \ -H "Content-Type: application/json" \ https://www.zhyun.kimform 데이터 함께 보내기
curl \ -X POST -d name='kim' \ -d weight='300' \ -H "Content-Type: application/json" \ https://www.zhyun.kim날씨 조회 1
curl v2.wttr.in/Seoulwindows powershell

ubuntu

날씨 조회 2
curl wttr.in/Seoul
'OS > Shell 명령어' 카테고리의 다른 글
ubuntu : 프로세스 조회 관련 명령어 (0) 2023.12.10