The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

cURL Error

Highlighted
Occasional Advisor

cURL Error

Hey everyone,

 

My last thread died so I thought I would post here:

 

I'm doing a POST call to my company's Constant Contact account using cURL, but my code does not seem to want to work. I'm using the same cURL sample code posted here: https://community.constantcontact.com/t5/Getting-Started-with-API-s/How-to-Import-Contacts-w-Multipa...

 

Because I'm using what Constant Contact has provided, I must be missing something obvious. I've attached a screenshot of my current code and error messages. Thanks to anyone who can provide help. 

 

Regards,

Nick W


cURL Failure EDIT.png
3 REPLIES 3
Highlighted
Occasional Advisor

Re: cURL Error

I've also attached a screenshot when I used my entire file path in the command...


cURL Failure 2 EDIT.png
Highlighted
Honored Contributor

Re: cURL Error

Hello,

 

After reviewing this, it looks like the issue is probably related to your use of single quotes rather than double quotes on the CURL paramters. I suspect this because a single quote is being shown as part of the file name when it should in theory be ignored. If you convert all of the arguments to use double quotes rather than single quotes, you should see an improvement.

 

Best Regards,

Elijah G.
API Support Engineer
Highlighted
Occasional Advisor

Re: cURL Error

Thank you!

Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured