<?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=381041&amp;view=findpost&amp;p=3357090</guid>
        <pubDate>Wed, 18 Sep 2013 08:19:21 +0000</pubDate>
        <title>Антивирь против TIdHTTPServer</title>
        <link>https://forum.sources.ru/index.php?showtopic=381041&amp;view=findpost&amp;p=3357090</link>
        <description><![CDATA[antonn: Какая разница как скачивается со своего сервера или мейл.ру, и там и там все энкодится в текст для передачи по http.<br>Можно глянуть заголовки, но они никак не должны отражать &quot;безопасность&quot; передаваемого файла, антивирь должен смотреть только сам скачанный файл. Отсюда как вариант - глянуть как настроены правила по скачке с неизвестных серверов, может там самодельный сервис в подозрительном диапазоне и с него загрузка бинарных данных блокируется :) Еще можно снять хэш с файла и со стрима полученного с сайта, должен совпадать]]></description>
        <author>antonn</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=381041&amp;view=findpost&amp;p=3357080</guid>
        <pubDate>Wed, 18 Sep 2013 07:56:01 +0000</pubDate>
        <title>Антивирь против TIdHTTPServer</title>
        <link>https://forum.sources.ru/index.php?showtopic=381041&amp;view=findpost&amp;p=3357080</link>
        <description><![CDATA[poiree: Всем огромное спасибо&#33; Долгое время даже не залезал на форум, потому как он, как мне казалось, уже вымер. Темы добавляются редко, на многие не отвечают...<br>Буду пробовать.<br>А вот ещё вопрос - подобный сайт, как у меня - может быть обнаружен яндексом или он слишком &quot;деревянный&quot;. Я имею ввиду, чтобы поисковик его находил при поиске клиента в данной тематике?<br>Например, при попытке создать рекламу в яндекс-директ, возвращается ответ, что нет связи с сайтом... хотя я легко захожу на страницы и пр...]]></description>
        <author>poiree</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=381041&amp;view=findpost&amp;p=3355239</guid>
        <pubDate>Wed, 11 Sep 2013 22:46:20 +0000</pubDate>
        <title>Антивирь против TIdHTTPServer</title>
        <link>https://forum.sources.ru/index.php?showtopic=381041&amp;view=findpost&amp;p=3355239</link>
        <description><![CDATA[Mr.Delphist: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=381041&view=findpost&p=3355158'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Виталь &#064; <time class="tag-quote__quoted-time" datetime="2013-09-11T17:26:33+00:00">11.09.13, 17:26</time></span><div class='quote '>Просто какая-то не такая сигнатура.</div></div><br>
О том и речь - скорее всего, с mail.ru выкачивается бинарь трансформированный в каком-то энкодинге, поэтому анализатор Нода молчит. А со &quot;своего&quot; сервака качается влоб побайтно, вот антивирь и кипишует - &quot;вирусы атакуют, не пущать&#33;&quot;]]></description>
        <author>Mr.Delphist</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=381041&amp;view=findpost&amp;p=3355158</guid>
        <pubDate>Wed, 11 Sep 2013 17:26:33 +0000</pubDate>
        <title>Антивирь против TIdHTTPServer</title>
        <link>https://forum.sources.ru/index.php?showtopic=381041&amp;view=findpost&amp;p=3355158</link>
        <description><![CDATA[Виталь: NOD УГ. Если будут ругаться другие АВ - тогда есть смысл разбираться, а если нет - забей.<br>Просто какая-то не такая сигнатура.<br><br>У меня аваст ругается на чистое консольное приложение begin end.]]></description>
        <author>Виталь</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=381041&amp;view=findpost&amp;p=3354705</guid>
        <pubDate>Tue, 10 Sep 2013 14:45:27 +0000</pubDate>
        <title>Антивирь против TIdHTTPServer</title>
        <link>https://forum.sources.ru/index.php?showtopic=381041&amp;view=findpost&amp;p=3354705</link>
        <description><![CDATA[Mr.Delphist: Сравнить в любом сниффере (например, Fiddler или Wireshark) как именно отдаётся бинарный контент с files.mail.ru - подозреваю, там формат стрима не совпадает с &quot;самоделкой&quot;. Как минимум, Content Type будет что-то типа application/octet-stream, обязательно проверить наличие Content Length и т.п.]]></description>
        <author>Mr.Delphist</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=381041&amp;view=findpost&amp;p=3354261</guid>
        <pubDate>Mon, 09 Sep 2013 09:16:55 +0000</pubDate>
        <title>Антивирь против TIdHTTPServer</title>
        <link>https://forum.sources.ru/index.php?showtopic=381041&amp;view=findpost&amp;p=3354261</link>
        <description><![CDATA[poiree: Добрый день.<br>
Столкнулся с проблемой:<br>
Использую DelphiXE Indy10.<br>
На компоненте TIdHTTPServer висит примитивный сайт.<br>
Когда я с этого сайта пытаюсь скачать файл - антивирус (Nod32) его блокирует, когда тот почти загрузится. Причем в тексте не написано, что подозрение на вирус - просто блокирует.<br>
Этот же файл выложил на files.mail.ru - качается без проблем.<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">procedure TForm1.IdHTTPServer1CommandGet(AContext: TIdContext;</div><div class="code_line">&nbsp;&nbsp;ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo);</div><div class="code_line">var</div><div class="code_line">&nbsp;&nbsp;sCom : string;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp;try</div><div class="code_line">&nbsp;&nbsp; &nbsp;sCom := ARequestInfo.Document;</div><div class="code_line">&nbsp;&nbsp; &nbsp;AddToLog(AContext.Binding.PeerIP, &#39;Программа клиента: &#39; + ARequestInfo.UserAgent);</div><div class="code_line">&nbsp;&nbsp; &nbsp;if sCom = &#39;/&#39; then</div><div class="code_line">&nbsp;&nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;AddToLog(AContext.Binding.PeerIP, &#39;ЗАПРОС КЛИЕНТА&#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;AResponseInfo.ContentText := IOUtils.TFile.ReadAllText(ExtractFilePath(Application.ExeName) + &#39;Main.htm&#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;AResponseInfo.ContentType := &#39;text/html&#39;;</div><div class="code_line">&nbsp;&nbsp; &nbsp;end</div><div class="code_line">&nbsp;&nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp;if sCom = &#39;/MyProg.exe&#39; then &nbsp;// ВОТ ТУТ ВИДИМО ЧТО-ТО НЕ НРАВИТСЯ АНТИВИРУСУ</div><div class="code_line">&nbsp;&nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;AResponseInfo.ContentType := &#39;bytes&#39;; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;AResponseInfo.ResponseNo := 200;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;AResponseInfo.ContentStream := TFileStream.Create(ExtractFilePath(Application.ExeName) + &#39;TreeProgsClient.exe&#39;, fmOpenRead);</div><div class="code_line">&nbsp;&nbsp; &nbsp;end</div><div class="code_line">&nbsp;&nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;AddToLog(AContext.Binding.PeerIP, &#39;Элемент: &#39; + sCom);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;AResponseInfo.ContentText := IOUtils.TFile.ReadAllText(ExtractFilePath(Application.ExeName) + Copy(sCom, 2, Length(sCom)));</div><div class="code_line">&nbsp;&nbsp; &nbsp;end;</div><div class="code_line">&nbsp;&nbsp; &nbsp;if Copy(sCom, Length(sCom) - 3, 4) = &#39;.css&#39; then</div><div class="code_line">&nbsp;&nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;AResponseInfo.ContentType := &#39;text/css&#39;;</div><div class="code_line">&nbsp;&nbsp; &nbsp;end;</div><div class="code_line">&nbsp;&nbsp; &nbsp;AResponseInfo.ContentLanguage := &#39;RU&#39;;</div><div class="code_line">&nbsp;&nbsp; &nbsp;AResponseInfo.CharSet := &#39;windows-1251&#39;;</div><div class="code_line">&nbsp;&nbsp;except</div><div class="code_line">&nbsp;&nbsp; &nbsp;on E : Exception do</div><div class="code_line">&nbsp;&nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;AddToLog(AContext.Binding.PeerIP, &#39;Ошибка: &#39; + e.Message);</div><div class="code_line">&nbsp;&nbsp; &nbsp;end;</div><div class="code_line">&nbsp;&nbsp;end;</div><div class="code_line">end;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>poiree</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      </channel>
      </rss>
	