curl 활용하기curl 활용하기

Posted at 2012. 12. 21. 10:02 | Posted in 개발이야기

<post 호출>

curl -d @data.txt http://localhost:8080

curl -d "12345" http://localhost:8080

curl -X POST -d "12345" http://localhost:8080

curl -H "Accept: application/json" -H "Content-Type: application/json" --fail -d @data.txt http://localhost:8080



<file download>

curl -O http://redis.googlecode.com/files/redis-2.6.9.tar.gz

curl -o taglist.zip http://www.vim.org/scripts/download_script.php?src_id=7701


wget http://redis.googlecode.com/files/redis-2.6.9.tar.gz

wget -O taglist.zip http://www.vim.org/scripts/download_script.php?src_id=7701


//