cirl and wget - RLidea/dev.docs GitHub Wiki

curl, wget

[curl ๋Œ€ wget] ์–ด๋Š ํ”„๋กœ๊ทธ๋žจ์ด ๋” ์ข‹์„๊นŒ?

curl

curl์„ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ• ์•Œ์•„๋ณด๊ธฐ

์„œ๋ฒ„์™€ ํ†ต์‹ ํ•˜๊ธฐ ์œ„ํ•œ ์ปค๋งจ๋“œ ๋ช…๋ น์–ด ํˆด.

  • ์ง€์› http ํ”„๋กœํ† ์ฝœ:

    DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, Telnet, TFTP

  • options -X : ์‚ฌ์šฉํ•  ๋ฐฉ์‹ ๋ฉ”์†Œ๋“œ ์„ ํƒํ•˜๊ธฐ -d : ํ•จ๊ป˜ ์ „๋‹ฌํ•  ํŒŒ๋ผ๋ฏธํ„ฐ๊ฐ’ ์„ค์ •ํ•˜๊ธฐ -G : ์ „์†กํ•  ์‚ฌ์ดํŠธ url ๋ฐ ip ์ฃผ์†Œ -H : ํ—ค๋” ์ •๋ณด๋ฅผ ์ „๋‹ฌํ•˜๊ธฐ -i : ์‚ฌ์ดํŠธ์˜ Header ์ •๋ณด๋งŒ ๊ฐ€์ ธ์˜ค๊ธฐ -I : ์‚ฌ์ดํŠธ์˜ Header์™€ ๋ฐ”๋”” ์ •๋ณด๋ฅผ ํ•จ๊ป˜ ๊ฐ€์ ธ์˜ค๊ธฐ -u : ์‚ฌ์šฉ์ž ์ •๋ณด

curl -X POST -H "Content-Type: application/json;charset=UTF-8" -d '{ "message": "hia" }' "http://localhost:8000/cgw/test_echo_server.php"