Revert "switch to http client."

This reverts commit 7cda36ad9cc4e1f10ddea51324696d2a73b1ce7d.