로그인
curl -b cookies.txt -c cookies.txt -X POST -d"user=dasomoli&password=PASSWORD&remember=on" http://SWARM_SITE/login > login.json
리뷰 정보
curl -b cookies.txt -c cookies.txt http://SWARM_SITE/reviews/607580 > review607580.html
파일에 코멘트
curl -b cookies.txt -c cookies.txt --data-urlencode 'topic=reviews/607580' --data-urlencode 'user=dasomoli' --data-urlencode 'context={"file":"FILENAME1.C","review":607580,"version":1}' --data-urlencode 'body=OK' --data-urlencode 'delayNotification=true' --data-urlencode '_csrf=42190951-ac6c-ea4f-0443-063ad2290f26' http://SWARM_SITE/comments/add
+1 vote up
curl -b cookies.txt -c cookies.txt --data-urlencode 'topic=reviews/607580' --data-urlencode 'user=dasomoli' --data-urlencode 'context={"file":"FILENAME1.C","review":607580,"version":1}' --data-urlencode 'body=OK' --data-urlencode 'delayNotification=true' --data-urlencode '_csrf=42190951-ac6c-ea4f-0443-063ad2290f26' http://SWARM_SITE/comments/add