Hi, I looked at your posting because I was getting similar errors. In my case it was because I was trying to fetch a contact using a POST (should have used a GET, stupid transcribing error on my part). In your case I see one big problem. In your line:
curl_setopt($ch, CURLOPT_URL, 'https://api.constantcontact.com/ws/customers/username/contacts');
you should be using the actual user-name, not the string 'username'.
--- Cliff Janson, independent consultant (http://comparehybridcars.net/cliff-janson.html)
... View more