views:

12

answers:

0

I don't know what happened in hour My script stopped to retrieve data from internet instead it is still able retrieve data from http:// localhost/ . The wininet error I got is 12029 (ERROR_INTERNET_CANNOT_CONNECT) - as listed here http://support.microsoft.com/kb/193625,

The code which produces error is:

HINTERNET hOpenUrl = InternetOpenUrl(
      hOpen,"http://www.sign8.com/index.php",
      NULL,0,
      INTERNET_FLAG_PRAGMA_NOCACHE|INTERNET_FLAG_KEEP_CONNECTION,
      0);

   if ( !hOpenUrl )
   {
      DWORD dwErr = GetLastError();

      //Handle error      .................
      cout<<"Failed to open WinInet! try again";
      cout<<dwErr;
      return;
   }

I don't know how to deal with this error, My Internet connection is working properly.