我很想利用缺席的因特网探索者联系代理环境,在C++的URL中提出请求,这是我的榜样:
CURL *curl;
CURLcode result;
curl = curl_easy_init();
char errorBuffer[CURL_ERROR_SIZE];
if (curl)
{
// Now set up all of the curl options
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errorBuffer);
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_setopt(curl, CURLOPT_HEADER, 0);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(curl, CURLOPT_COOKIEJAR, "cookies.txt");
// Attempt to retrieve the remote page
result = curl_easy_perform(curl);
// Always cleanup
curl_easy_cleanup(curl);
}
我如何检索Proxy互联网探索者环境,然后转往我的URL,以便它能够利用代理人提出请求?
Thanks in advance.