cancel
Showing results for 
Search instead for 
Did you mean: 
Constant Contact wants to help you succeed! We’re celebrating our professional service programs on the Constant Contact Community this month and you have a chance to try one of the services for free! Learn more.

coldfusion CFHTTP access to http://api.constantcontact.com

New Member

coldfusion CFHTTP access to http://api.constantcontact.com

Wonder if anyone can help me. I'm trying to retrieve a list of contacts via the API and we code in Coldfusion.

My coldfusion page contains:



However, we're getting "Error reported: 401".

I've chcked the username & password via a web browser and they work perfectly.

Anyone else had issues with CFHTTP?

Cheers,

Neil
2 REPLIES 2
New Member

Battle over!

Before anyone else wastes load of time trying to get CFHTTP to work I believe it doesn't. Not that it's CFHTTP fault but it doesn't support Digest Authentication.

As such we're now using cfx_http5 and it works!
New Member

Another way

If you want to avoid the custom tag and aren't afraid of a little Java in ColdFusion, you can use a few Open Source technologies to do it in in CFML.

The post here details how to do it:
http://www.terrenceryan.com/blog/index.cfm/2009/1/8/Digest-Authentication-in-ColdFusion