The no-CURL way to submit a request to Tenon API

Written on November 04, 2014

A few months ago, I posted Tutorial: Creating a PHP class to use with Tenon.io. Someone asked me “What about servers that don’t have CURL? Here you go. Use the class in that post, but swap out the submit() function for this:

In fact, using streams may even be faster than CURL!