I took curl-7.24.0.zip from their site http://curl.haxx.se/download.html and compiled libcurl ... i've got only the .lib
Now, what to do ?
EDIT :
Im also needing a simple example on how to retrieve a website content ( blablabla.com?uid=1 ) in a char using wininet.
I tried
HINTERNET hINet, hFile;
hINet = InternetOpen(LPCWSTR("InetURL/1.0"), INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0 );
if ( !hINet )
{
// bail out
}
hFile = InternetOpenUrl( hINet, LPCWSTR("site"), NULL, 0, 0, 0 );
if ( hFile )
{
CHAR buffer[1024];
DWORD dwRead;
while ( InternetReadFile( hFile, buffer, 1023, &dwRead ) )
{
if ( dwRead == 0 )
break;
buffer[dwRead] = 0;
cout << "lol" << buffer ;
}
InternetCloseHandle( hFile );
}
InternetCloseHandle( hINet );
but not working( blank output ).