vc +curl 访问网页的问题,懂CURL 的进
m_curl = curl_easy_init();
curl_easy_setopt( m_curl, CURLOPT_URL, surl );
curl_easy_setopt( m_curl, CURLOPT_HTTPGET, 1 );
curl_easy_setopt( m_curl, CURLOPT_HEADER, withheader );
curl_easy_setopt( m_curl, CURLOPT_TIMEOUT, timeout );
curl_easy_setopt( m_curl, CURLOPT_WRITEFUNCTION, CCUrl::processFunc );
curl_easy_setopt( m_curl, CURLOPT_WRITEDATA, this );
CURLcode res = curl_easy_perform( m_curl);
很多网页都可以访问,并得到网页源码,但 aol.com 就不可以了,是不是少了什么设置参数? 这个网站
http://search.aol.com/aol/webhome