http client as alternative for file_get_contents