v1 API Can Add Contact in Browser but not from Code
We've been using the v1 API for a while with one of our contact forms. Our client believes contacts from this form stopped being added correctly about 6 months ago.
When I go to the URL manually in my browser, I get an HTTP 200 code and the contact gets added fine. This is the URL we use (with sensitive values removed, space after https added to defeat forum's auto-linking):
But when I try to make this request from code (ColdFusion) it seems to fail. I don't get any errors on our side though, which is making this annoying to debug. Best I can tell, the request is being sent out fine.
Do you folks have any idea what could be causing this?
Re: v1 API Can Add Contact in Browser but not from Code
My apologies about the delay in being able to get back to you on this! Given that you are using ColdFusion, I suspect that the cause is because ColdFusion is not using a secure enough connection method when accessing the API over HTTPS. In November of last year two security changes were made to our API in order to prevent attackers from being able to decrypt data sent to/from our API:
API Connections over HTTPS must use the TLSv1.0 protocol or newer. SSLv3 was previously allowed, but is no longer secure and has been disabled.
Secure connections using TLSv1.0+ must use at least a basic form of AES encryption to protect the data being transmitted. RC4 was previously allowed but is not longer secure and has also been disabled.
While I have never operated a ColdFusion server personally, I suspect that you either need to change some settings in ColdFusion to force it to use more secure connection options (like your browser is already doing) or potentially upgrade to a new version of CF if it does not support AES encryption over TLSv1.0+.
If you have any questions, please feel free to ask and we will be happy to provide as much assistance as we can!