Archives

HTTP

pecl_http 2.x example

Previously, I was using pecl_http 1.7.6 and life was easy – all I was using (and needed) was the http_get() API.  However, v2 of the API was completely overhauled.  Gone are the static, c-style APIs, instead replaced with a full object-oriented API.  One could argue that this change was long overdue, but it was a jarring change – the old APIs weren’t simply deprecated, they were removed.

Read more →