I'm trying to import my contacts from Zimbra 4.5.9 to 5.0.2. I followed the mirgration guide and used wget to read the contacts from 4.5 into a csv file. But when I use curl to try to import the csv file, I get the following error:
HTTP ERROR: 400
could not parse csv file

Here are the wget and curl commands I used:
Code:
wget https://$user:$pass@$SRC/zimbra/user/$user/contacts.csv --no-check-certificate
curl -u "$user:$pass" --data-binary \@contacts.csv http://$DEST/service/home/$user/contacts?fmt=csv --insecure
And here are the first couple of lines of the csv file:
Code:
"assistantPhone","birthday","callbackPhone","carPhone","company","companyPhone","description","department","dlist","email","email2","email3","fileAs","firstName","fullName","homeCity","homeCountry","homeFax","homePhone","homePhone2","homePostalCode","homeState","homeStreet","homeURL","initials","jobTitle","lastName","middleName","mobilePhone","namePrefix","nameSuffix","nickname","notes","office","otherCity","otherCountry","otherFax","otherPhone","otherPostalCode","otherState","otherStreet","otherURL","pager","workCity","workCountry","workFax","workPhone","workPhone2","workPostalCode","workState","workStreet","workURL","type"
"","","","","","","","","","name@somedomain.com","","","","Phil","Phil Smith","","","","","","","","","","","","Smith","","","","","","","","","","","","","","","","","","","","","","","","","",""
Am I doing something wrong?

Jim