読者です 読者をやめる 読者になる 読者になる

IT練習ノート

IT関連で調べたこと(実際は嵌ったこと)を書いています。

ServantのCSVファイルダウンロードのサンプル

Servant CSV download sample

$ curl -i http://127.0.0.1:8081/csv/UNdata_Export_pork
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Date: Mon, 20 Jun 2016 16:12:16 GMT
Server: Warp/3.2.9
Content-Type: application/csv

"Country or Area","Year","Unit","Value","Value Footnotes"
"Albania","2013","Mil. USD","3.86207176515949",""
"Albania","2013","Thousand metric tons","0.8",""
"Albania","2012","Mil. USD","3.17974879791774",""
"Albania","2012","Thousand metric tons","0.8",""