added host header to curlloop