http_request: factor out curlinfo_strbuf