HttpLogger: use cURL

Use cURL instead of file_get_contents for better performance.