I am trying to post a CSV file using cURL. Following are the contents of the file:
5dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378029600,34
5dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378031400,34
5dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378033200,34
I am trying to post a CSV file using cURL. Following are the contents of the file: 5dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378029600,34 5dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378031400,34 5dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378033200,34
Command I am using: curl -XPOST -d @testupload.csv -H "Content-Type: text/csv" http://hostname.com/add/key
Error: Invalid CSV line: 5dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378 029600,345dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378031400,34 5dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378033200,34
Any idea what might be wrong here?