Tag: curl multi

具有多个接口的cURL,用于与代理的多个连接

我需要从一个网站上查看列表中的许多代理。 我决定用libcurl来做这件事。 我用这个例子并根据我的需要修改它。 这是我的代码: #include #include #include #include #include #include /* somewhat unix-specific */ #include #include using namespace std; CURL * handles [100]; CURL * createProxyHandle (string proxyData){ CURL * handle = curl_easy_init (); curl_slist * chunk = NULL; chunk = curl_slist_append(chunk, “Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1”); chunk = curl_slist_append(chunk, […]