Curl error when accessing history data
slowtoaccept opened this issue · 2 comments
slowtoaccept commented
curl -o spot-0222-hist.json https://api.sofarocean.com/api/wave-data?spotterId=SPOT-0222&limit=20 -H "token: ******3665"
yields the following response:
'limit' is not recognized as an internal or external command,
operable program or batch file.
tcj commented
Hello! This will likely be addressed by enclosing the URL in single- or double-quotes, like this:
"https://api.sofarocean.com/api/wave-data?spotterId=SPOT-0222&limit=20"
Without the quotes, your computer's shell is attempting to interpret the ampersand, instead of passing it along to curl
.
slowtoaccept commented
thx. wks.