<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=298596&amp;view=findpost&amp;p=2564237</guid>
        <pubDate>Sat, 10 Apr 2010 10:38:16 +0000</pubDate>
        <title>HttpSendRequest() FAILED 12029</title>
        <link>https://forum.sources.ru/index.php?showtopic=298596&amp;view=findpost&amp;p=2564237</link>
        <description><![CDATA[progman: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=298596&view=findpost&p=2564219'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>GoldFinch &#064; <time class="tag-quote__quoted-time" datetime="2010-04-10T14:10:05+04:00">10.04.10, 10:10</time></span><div class='quote '>посмотрите снифером что происходит %)</div></div><br>
проблематично. тестеры это как бы помягче сказать - не обременены мозгом и снифер поставить и запустить ни асилят (((]]></description>
        <author>progman</author>
        <category>C/C++: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=298596&amp;view=findpost&amp;p=2564219</guid>
        <pubDate>Sat, 10 Apr 2010 10:10:05 +0000</pubDate>
        <title>HttpSendRequest() FAILED 12029</title>
        <link>https://forum.sources.ru/index.php?showtopic=298596&amp;view=findpost&amp;p=2564219</link>
        <description><![CDATA[GoldFinch: посмотрите снифером что происходит %)]]></description>
        <author>GoldFinch</author>
        <category>C/C++: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=298596&amp;view=findpost&amp;p=2564186</guid>
        <pubDate>Sat, 10 Apr 2010 09:25:25 +0000</pubDate>
        <title>HttpSendRequest() FAILED 12029</title>
        <link>https://forum.sources.ru/index.php?showtopic=298596&amp;view=findpost&amp;p=2564186</link>
        <description><![CDATA[progman: появились уточненния по сабжу<br>
не работает только под VPN и возвращает уже <strong class='tag-b'>12029</strong><br>
причем в IE такая же адресная строка открывает документ или файл нормально]]></description>
        <author>progman</author>
        <category>C/C++: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=298596&amp;view=findpost&amp;p=2547511</guid>
        <pubDate>Thu, 25 Mar 2010 18:41:34 +0000</pubDate>
        <title>HttpSendRequest() FAILED 12029</title>
        <link>https://forum.sources.ru/index.php?showtopic=298596&amp;view=findpost&amp;p=2547511</link>
        <description><![CDATA[gen.izh: список ошибок в помощь:<br>
<div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>Error Code 12138<br>
System error code 12138 means &quot;The locator type is unknown.&quot; This error code may also display as &quot;ERROR_GOPHER_UNKNOWN_LOCATOR&quot; or as a specific value.<br>
Error Code 12150<br>
System error code 12150 means &quot;The requested header could not be located.&quot; This error code may also display as &quot;ERROR_HTTP_HEADER_NOT_FOUND&quot; or as a specific value.<br>
Error Code 12151<br>
System error code 12151 means &quot;The server did not return any headers.&quot; This error code may also display as &quot;ERROR_HTTP_DOWNLEVEL_SERVER&quot; or as a specific value.<br>
Error Code 12152<br>
System error code 12152 means &quot;The server response could not be parsed.&quot; This error code may also display as &quot;ERROR_HTTP_INVALID_SERVER_RESPONSE&quot; or as a specific value.<br>
Error Code 12153<br>
System error code 12153 means &quot;The supplied header is invalid.&quot; This error code may also display as &quot;ERROR_HTTP_INVALID_HEADER&quot; or as a specific value.<br>
Error Code 12154<br>
System error code 12154 means &quot;The request made to HttpQueryInfo is invalid.&quot; This error code may also display as &quot;ERROR_HTTP_INVALID_QUERY_REQUEST&quot; or as a specific value.<br>
Error Code 12155<br>
System error code 12155 means &quot;The header could not be added because it already exists.&quot; This error code may also display as &quot;ERROR_HTTP_HEADER_ALREADY_EXISTS&quot; or as a specific value.<br>
Error Code 12156<br>
System error code 12156 means &quot;The redirection failed because either the scheme changed (for example, HTTP to FTP) or all attempts made to redirect failed (default is five attempts).&quot; This error code may also display as &quot;ERROR_HTTP_REDIRECT_FAILED&quot; or as a specific value.<br>
Error Code 12157<br>
System error code 12157 means &quot;The application experienced an internal error loading the SSL libraries.&quot; This error code may also display as &quot;ERROR_INTERNET_SECURITY_CHANNEL_ERROR&quot; or as a specific value.</div></div><br>
так перевел промт<br>
<div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>Код ошибки системы 12150 средств &quot;требуемый заголовок не мог быть расположен.&quot; Этот код ошибки может также показать как &quot;ERROR_HTTP_HEADER_NOT_FOUND&quot; или как определенная ценность.</div></div><br>
вот тут вроде америкосы пытали эту тему<br>
http://www.codeguru.com/forum/archive/index.php/t-338949.html]]></description>
        <author>gen.izh</author>
        <category>C/C++: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=298596&amp;view=findpost&amp;p=2546185</guid>
        <pubDate>Wed, 24 Mar 2010 22:08:14 +0000</pubDate>
        <title>HttpSendRequest() FAILED 12029</title>
        <link>https://forum.sources.ru/index.php?showtopic=298596&amp;view=findpost&amp;p=2546185</link>
        <description><![CDATA[progman: стоит задача скачать файл с сервака c каким то IP. пусть будет  1.2.3.4<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">const wchar_t* severname &nbsp; &nbsp;= L&quot;1.2.3.4&quot;;</div><div class="code_line">const long bufferlength &nbsp; &nbsp; = 1000000;</div><div class="code_line">wchar_t* data = (wchar_t*) malloc( bufferlength );</div><div class="code_line">unsigned int bytesReaded = 0;</div><div class="code_line">&nbsp;</div><div class="code_line">LoadFileHTTP( severname, L&quot;FILELIST.ZIP&quot;, (BYTE*)data, bufferlength, &amp;bytesReaded );</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
<br>
на машинах кторые под VPN сидят в инете после вызова HttpSendRequest ловится ошибка 12029. через IE файл отлично скачивается.<br>
тестеры говорят что прога добавлена в исключения в антивирусах и фаерволах.<br>
или они вообще отключены.<br>
<br>
где собако могла порытся?<br>
<br>
вот реализация загрузчика:<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">UINT Setup::LoadFileHTTP(const wchar_t *host, const wchar_t *url, unsigned char *buffer, unsigned int bufferLength, unsigned int *bytesReaded, IProgressBar* progress )</div><div class="code_line">{ &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp;UINT res = S_OK; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;HINTERNET &nbsp; hInet = ::InternetOpen( L&quot;Test Application&quot;, INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0 );</div><div class="code_line">&nbsp;&nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;if ( hInet ) </div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;HINTERNET hInetConn = ::InternetConnect( hInet, host, INTERNET_DEFAULT_HTTP_PORT,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NULL, NULL, INTERNET_SERVICE_HTTP, 0, 0 );</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if ( NULL != hInetConn )</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;const wchar_t *AcceptTypes[] = { L&quot;*/*&quot;, NULL };</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HINTERNET hRequest = ::HttpOpenRequest( hInetConn, L&quot;GET&quot;, url, NULL, NULL, AcceptTypes, INTERNET_FLAG_DONT_CACHE | INTERNET_FLAG_RELOAD | INTERNET_FLAG_NO_COOKIES, NULL );</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ( NULL != hRequest )</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ( ::HttpSendRequest( hRequest, L&quot;&quot;, -1, NULL, NULL ) )</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if( !::InternetReadFile( hRequest, buffer, bufferLength, (unsigned long*)bytesReaded ) )</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pgLog::error( &quot;::InternetReadFile() FAILED %d&quot;, GetLastError() );</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;res = 5;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pgLog::error( &quot;::HttpSendRequest() FAILED &nbsp;%d&quot;, GetLastError() );</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;res = 4;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::InternetCloseHandle( hRequest );</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pgLog::error( &quot;::HttpOpenRequest( GET, %S) FAILED &nbsp;%d&quot;, url, GetLastError() );</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;res = 3;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::InternetCloseHandle( hInetConn );</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;else </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pgLog::error( &quot;::InternetConnect( %S ) FAILED &nbsp;%d&quot;, host, GetLastError() );</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;res = 2;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;else </div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;pgLog::error( &quot;::InternetOpen FAILED &nbsp;%d&quot;, GetLastError() );</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;res = 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;return res;</div><div class="code_line">}</div></ol></div></div></div></div>]]></description>
        <author>progman</author>
        <category>C/C++: Сетевое программирование</category>
      </item>
	
      </channel>
      </rss>
	