Code: Select all
wxString strURL( L"http://www.google.com/ncr" );
wxCurlHTTP http( strURL );
http.SetOpt(CURLOPT_AUTOREFERER, 1);
http.SetOpt(CURLOPT_FOLLOWLOCATION, 1);
char* buffer;
http.Get(buffer);
if( buffer )
cout << buffer << endl;
Thanks!