3 ms·
Did you mean to use the "Accept" header? "Content-Type" describes the format of the request body.
by atombender 6y ago
Did you mean to use the "Accept" header? "Content-Type" describes the format of the request body.
- mildbyte 6y agoYeah, sorry, got too excited! It will return JSON by default and CSV with Accept: text/csv: $ curl -sH "Accept: text/csv" https://data.splitgraph.com/cityofchicago/covid19-daily-cases-deaths-and-hospitalizations-naz8-j4nc/latest/-/rest/covid19_daily_cases_deaths_and_hospitalizations?select=lab_report_date,cases_total,deaths_total | head -n5 lab_report_date,cases_total,deaths_total 2020-03-01,0,0 2020-03-02,0,0 2020-03-03,0,0 2020-03-04,0,0
- atombender 6y agoVery nice!