php-echonest-api icon indicating copy to clipboard operation
php-echonest-api copied to clipboard

Add first Requests HTTP client implementation

Open Afterster opened this issue 12 years ago • 2 comments

My project cannot have strong dependency with cUrl and because of that I created a new transport layer which use Requests project (http://requests.ryanmccue.info/), using cUrl or fsockopen according to what available.

Afterster avatar Jan 02 '14 22:01 Afterster

This is interesting... the advantage is Requests uses fsockopen, and this is required for your project?

I think this may be something better suited for your own application. I do not see this being widely useful

bshaffer avatar Jan 03 '14 20:01 bshaffer

Yes Requests is required by my project. But there is no much http framework in php (the other popular one I can think of is Guzzle). In the same time it avoids curl strong dependency on your project. I found that useful for everyone, moreover you already have the http client abstraction layer, it's why I proposed the pull request. Your choice ;)

Afterster avatar Jan 03 '14 21:01 Afterster