cancel
Showing results for 
Search instead for 
Did you mean: 

The message received was unexpected or badly formatted

SOLVED
Advisor

The message received was unexpected or badly formatted

Hi,

 

I'm doing some maintenance in an old VB6 app running Windows XP.  What used to work flawlessly for years is now returning the above error message when I attempt to download the list of lists (or issue any .send for that matter).

 

The code and parameters is as follows:  (I've changed the actual values)

 

strCredentials =  "7d262b7e-f22a-xxxx-xxxx-xxxxxxxxxxxx%mycompanylogin"

strURI = "https://api.constantcontact.com/ws/customers/mycompanylogin/lists"

 

Set WinHttpReq = New WinHttp.WinHttpRequest

 

 

WinHttpReq.Open "GET", strURI, False
WinHttpReq.SetCredentials strCredentials, "mypassword", 0
WinHttpReq.send

 

The error occurs when I issue the .send

 

What's interesting is that I can take the same Constant Contact credentials and login and download fine in a .net application.  So it appears to be something related to the old VB6 way of doing things.  I'm wondering if anyone else has reported a similar behavior and what a possible solution may be.

 

Thanks.

 

Chris Campbell - Partner

Cascade Data Solutions

 

 

 

 

 

 

 

 

 

 

3 REPLIES
Advisor

Re: The message received was unexpected or badly formatted

As a follow up to this I've isolated the issue to only occurring in an XP environment.  Has Microsoft slammed the door on this working in XP or was there a change made on your end that would cause this error to occur?

 

Thanks.

 

Chris Campbell - Partner

Cascade Data Solutions

CTCT Employee

Re: The message received was unexpected or badly formatted

Hi Chris,

 

It sounds like it might be an issue with the security protocol used by your XP environment. We stopped supporting TLS 1.0 with RC4 ciphers and SSL 3 to prevent the man-in-the-middle, or POODLE, attacks that were widely publicized around the web. More information on that is at http://techblog.constantcontact.com/api/release-updates/support-ending-for-tls-v1-0-rc4-cipher-and-s... If you can upgrade the security protocol to TLS 1.1 or 1.2, you'll likely see the issue resolved.

 

I'm not aware if Microsoft released a patch for this for XP. A brief search indicated that Microsoft stopped supporting XP last year, but you may still be able to find an update.

 

Best Regards,

Shannon Wallace

Partner API Support Engineer

Moderator

Re: The message received was unexpected or badly formatted

As a quick update, Constant Contact no longer supports or works on Windows XP.  The change mentioned by Shannon for TLS 1.0 and SSL v3 mean that there are no supported SSL security protocols left on Windows XP that comply with the security standards of Constant Contact.  Microsoft has not and will not release any updates to XP to resolve this issue.

Dave Berard
Senior Product Manager, Constant Contact
Still need help?
You can post a new message in the Community or find us on Twitter Mon-Fri 8am - 8pm ET. We've got real people waiting to help you out. Click below to start a conversation!