title: "Is there a better way?" Error 12029 with wininet on Windows Vista
body: <p>I kept recieving error 12029 (ERROR INTERNET CANNOT CONNECT, The attempt to connect to the server failed.) when using the the MFC wininet classes on Windows Vista.  The cause of the error was due to Windows Defender.  Is there a better way to get around this than completely turning off Windows Defender?  I tried turning off "real time protection" to no avail, I had to completely turn WD off to stop the 12029 errors.</p>
  
  <p>If there is no better solution hopefully someone else with the same issue will see this question and be able to fix thier own problem.  I searched the intertubes high and low and didn't find any crossreferences between wininet error 12029 and WD.</p>
  
  <p>My code for reference</p>
  
  <pre><code>::CInternetSession session;
  ::CHttpConnection* connection = session.GetHttpConnection(L"twitter.com",80,m_csUserName,m_csPassword);   
  ::CHttpFile* httpfile = connection-&gt;OpenRequest(CHttpConnection::HTTP_VERB_GET,L"/account/verify_credentials.xml");             
  httpfile-&gt;SendRequest();
  </code></pre>