Programming
ab post 방식 사용방법
halatha
2013. 3. 25. 10:20
post url test
ab [-n number|-t time] -p [post query file] [-v verbose-level] -T "application/x-www-form-urlencoded" "[url]" |
- mandatory
- -n test 횟수 or -t 시간
- -p post data file
- -T "application/x-www-form-urlencoded" 없으면 query가 전달되지 않고 empty string이 됨
- optional
- -v verbose-level
- example ab -n 1 -p ./queryFile.txt -v 4 -T "application/x-www-form-urlencoded" "http://10.15.86.143:5000/analyze"
- cons 여러 데이터를 같이 사용하지 못함. multipart/form-data에 여러 데이터를 주는 예는 다음 링크 참조