HTTPRequest class doesn't exist in PHP 7+ (replacement in documentation)

Constant Contact Partner
0 Votes


HTTPRequest class doesn't exist in PHP 7+

The HTTP extension is a PECL package that needs to be installed separately.

This is 'difficult to impossible' to accomplish on shared hosting platforms

$request = new HttpRequest();


However, the guide consistently uses HttpRequest() as the example.


Requested Solution:

Test, confirm and show real world working examples using cURL instead.

0 Votes

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.


The request for V3 application code samples is currently under review. However, we're currently still adding endpoints and capabilities to the V3 API, and do not plan to publish official SDKs or sample apps until that process is complete. Your feedback and experience with this request is essential to improving our product, so thank you for reaching out to us regarding this matter.


In the meantime, here are the example calls that are currently available for V3:


V3 Code Samples:


Courtney E.
Tier II API Support Engineer

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Developer Portal

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

Visit Page


API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up