Re: Error: Invalid content encoding type. API only supports gzip.
I'm not personally familiar with Chilkat so my ability to provide you with specific guidance on how to form your HTTP request is limited.
Having said that, it looks like you are using some kind of method that is designed to make a POST call. POST calls are is used to give information to Constant Contact through the API. Examples would be creating a new contact, or making a new list. These are the types of calls where a JSON body is needed, as that is where you would place the information you are creating. And you would include a Content-Type header indicating that your request contains JSON. It would likely look like this:
The URL and parameters you are using are designed for a GET call, which is used to request information from our API, such as requesting a contact with a specific email address. GET calls do not have a body/payload/JSON. Because you don't include a body for a GET request, you don't need to set a header like above, and the response you get back will be in JSON as described in our documentation here: http://developer.constantcontact.com/docs/contacts-api/contacts-collection.html?method=GET
Please let me know if you have any other questions!
You can post a new message in the Community or find us on Twitter Mon-Fri 8am-8pm ET, Sat 10am-8pm ET, & Sun 10am-6pm ET. We've got real people waiting to help you out. Click below to start a conversation!