PHP w/out cURL


PHP w/out cURL

I'm having trouble creating a request with PHP, since I don't have curl installed on my server. I've tried manually creating the hashes, but I keep getting 401s.

This is just a testing script, but I'm hoping someone can tell me what I'm doing wrong. I've tried using this basic script on a test page I made with digest authentication, and it worked there.


Unfortunately we do not have any working samples for PHP 4.X. Due to PHP withdrawing support for 4.X with the upcoming release of 6.0 and 5.X being out for many years, we are not planning on offering any samples. I would recommend looking at the PHP 4.X forums to see if anyone there has posted a php function for setting up Digest Authentication without the curl fuction.
Dave Berard
Senior Product Manager, Constant Contact

Can't we post to Constant Contact without using Curl?

Where are the PHP 4.X forums?

Hey James,


I have never tried to post with out using cURL as it simplifies the process.  You can find more information about HTTP requests on  The documentation can be found here


Let me know if this helps.

Ryan Davis
Quality Engineer

Making an HTTPS request without cURL in PHP is actually a very difficult programming excercise.  A long time Constant Contact partner and developer on our API platform actually created a PHP 4.3+ wrapper for our API that you can find here:


Unfortunately, since PHP 4.x is no longer supported by, we are not planning on supplying any examples in that language. 


Dave Berard
Senior Product Manager, Constant Contact
Developer Portal

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

Visit Page