PHP w/out cURL

Highlighted
New Member

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.



Thanks,
Mike
4 REPLIES 4
Highlighted
Moderator

RE: PHP w/out cURL

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
Highlighted
Occasional Visitor

Re: RE: PHP w/out cURL

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

Where are the PHP 4.X forums?

Highlighted
Employee

Re: RE: PHP w/out cURL

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 php.net.  The documentation can be found here

 

Let me know if this helps.

Ryan Davis
Quality Engineer
Moderator

Re: RE: PHP w/out cURL

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: http://marketplace.constantcontact.com/Listing/applications/justphp/PML-0171

 

Unfortunately, since PHP 4.x is no longer supported by PHP.net, 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

Register for our "Making Sense of Online Marketing for Retail" Webinar

Join us on Thursday, August 13th at 2pm ET for a free webinar where we'll discuss how to incorporate online marketing into your retail store.

Read More
Featured