Using pecl_http for better request handling