Pecl extension is outdated. Using curl is more general and fast.