<?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=376557&amp;view=findpost&amp;p=3311057</guid>
        <pubDate>Mon, 13 May 2013 09:17:48 +0000</pubDate>
        <title>idHttp и отправка КУКИ в сервер</title>
        <link>https://forum.sources.ru/index.php?showtopic=376557&amp;view=findpost&amp;p=3311057</link>
        <description><![CDATA[faust777: Прежде чем снифать Браузер, надо очистить кеш&#092;куки и т.п. <br>тогда при &quot;первом&quot; запросе не будет ни чего лишнего и не будет лишних вопросов..]]></description>
        <author>faust777</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=376557&amp;view=findpost&amp;p=3310974</guid>
        <pubDate>Mon, 13 May 2013 06:29:21 +0000</pubDate>
        <title>idHttp и отправка КУКИ в сервер</title>
        <link>https://forum.sources.ru/index.php?showtopic=376557&amp;view=findpost&amp;p=3310974</link>
        <description><![CDATA[Fr0sT: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=376557&view=findpost&p=3310888'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Protector &#064; <time class="tag-quote__quoted-time" datetime="2013-05-12T19:54:37+00:00">12.05.13, 19:54</time></span><div class='quote '>сокеты вместо Инди</div></div><br>
Для HTTP не кошерно как раз, придется много всего руками писать]]></description>
        <author>Fr0sT</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=376557&amp;view=findpost&amp;p=3310888</guid>
        <pubDate>Sun, 12 May 2013 19:54:37 +0000</pubDate>
        <title>idHttp и отправка КУКИ в сервер</title>
        <link>https://forum.sources.ru/index.php?showtopic=376557&amp;view=findpost&amp;p=3310888</link>
        <description><![CDATA[Protector: <strong class='tag-b'>Pcrepair</strong>,Конечно ,я ,например, стараюсь каждую функцию проверять отдельно от основного проекта . Потом собирается мусор,объем которого больше за объем основного проекта ^^<br>
<br>
В противном случае, можно будет оперировать куками напрямую ,через парсинг посылаемого пакета&#092;ответа сервера.<br>
<br>
Ну и традиционно , я советую вам использовать сокеты вместо Инди ,как более кошерный и простой ,как по мне , способ обработки Интернет запросов и ответов.Тем более МСДН предлагает вам готовые симплы ,которые иллюстрируют работу базовых функций send/recv(пруф : <a class='tag-url' href='http://msdn.microsoft.com/en-us/library/windows/desktop/ms740149(v=vs.85).aspx' target='_blank'>http://msdn.microsoft.com/en-us/library/wi...9(v=vs.85).aspx</a> )]]></description>
        <author>Protector</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=376557&amp;view=findpost&amp;p=3310884</guid>
        <pubDate>Sun, 12 May 2013 19:26:01 +0000</pubDate>
        <title>idHttp и отправка КУКИ в сервер</title>
        <link>https://forum.sources.ru/index.php?showtopic=376557&amp;view=findpost&amp;p=3310884</link>
        <description><![CDATA[Pcrepair: а вот это еще проверить нужно, прийдется сделать простой вариант без потока и все на нем препарировать]]></description>
        <author>Pcrepair</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=376557&amp;view=findpost&amp;p=3310877</guid>
        <pubDate>Sun, 12 May 2013 19:09:00 +0000</pubDate>
        <title>idHttp и отправка КУКИ в сервер</title>
        <link>https://forum.sources.ru/index.php?showtopic=376557&amp;view=findpost&amp;p=3310877</link>
        <description><![CDATA[Protector: <strong class='tag-b'>Pcrepair</strong>,А после загрузки страницы список куки пуст(idHttp1.CookieManager.CookieCollection.Count=0)?]]></description>
        <author>Protector</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=376557&amp;view=findpost&amp;p=3310866</guid>
        <pubDate>Sun, 12 May 2013 18:39:37 +0000</pubDate>
        <title>idHttp и отправка КУКИ в сервер</title>
        <link>https://forum.sources.ru/index.php?showtopic=376557&amp;view=findpost&amp;p=3310866</link>
        <description><![CDATA[Pcrepair: получается что нет, это кстати мой вопрос]]></description>
        <author>Pcrepair</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=376557&amp;view=findpost&amp;p=3310794</guid>
        <pubDate>Sun, 12 May 2013 14:34:51 +0000</pubDate>
        <title>idHttp и отправка КУКИ в сервер</title>
        <link>https://forum.sources.ru/index.php?showtopic=376557&amp;view=findpost&amp;p=3310794</link>
        <description><![CDATA[Protector: <strong class='tag-b'>Pcrepair</strong>,Разве КукиМенеджер автоматически не отправляет(добавляет в тело запроса) однажды сохраненные куки?]]></description>
        <author>Protector</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=376557&amp;view=findpost&amp;p=3310793</guid>
        <pubDate>Sun, 12 May 2013 14:28:14 +0000</pubDate>
        <title>idHttp и отправка КУКИ в сервер</title>
        <link>https://forum.sources.ru/index.php?showtopic=376557&amp;view=findpost&amp;p=3310793</link>
        <description><![CDATA[Pcrepair: а это что?<br>FIdHttp.CookieManager:=FCookie;<br><br>вопросы немного не об этом]]></description>
        <author>Pcrepair</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=376557&amp;view=findpost&amp;p=3310790</guid>
        <pubDate>Sun, 12 May 2013 14:04:19 +0000</pubDate>
        <title>idHttp и отправка КУКИ в сервер</title>
        <link>https://forum.sources.ru/index.php?showtopic=376557&amp;view=findpost&amp;p=3310790</link>
        <description><![CDATA[Pcrepair: Добрый день. Есть следующий код(поток):<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">function TLoader.LoadSearchPage(const Reqest:string):string;</div><div class="code_line">const</div><div class="code_line">SMUrl = &#39;http://nova.rambler.ru/search?query=&#39;;</div><div class="code_line">//UrlEnd =&#39;&amp;pagelen=50&#39;;</div><div class="code_line">UrlEnd =&#39;&amp;dlang=0&amp;mimex=0&amp;st_date=&amp;end_date=&amp;news=0&amp;limitcontext=0&amp;exclude=&amp;filter=&amp;sort=3&amp;pagelen=50&amp;adult=soft&#39;;</div><div class="code_line">var</div><div class="code_line">FullUrl:string;</div><div class="code_line">begin</div><div class="code_line">FIdHttp:=TidHttp.Create(nil);</div><div class="code_line">FSSL:=TIdSSLIOHandlerSocketOpenSSL.Create;</div><div class="code_line">FCookie:=TIdCookieManager.Create;</div><div class="code_line">&nbsp;&nbsp; &nbsp;try</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;try</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;FIdHttp.Request.UserAgent:=&#39;Mozilla/5.0 (Windows NT 5.1; rv:20.0) Gecko/20100101 Firefox/20.0&#39;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;FIdHttp.Request.AcceptLanguage:=&#39;ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3&#39;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;//FIdHttp.Request.AcceptCharSet:=&#39;windows-1251,utf-8;q=0.7,*;q=0.3&#39;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;FIdHttp.Request.Connection:=&#39;Keep-Alive&#39;; (*???*)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;FIdHttp.Request.ContentType:=&#39;text/html&#39;; &nbsp; (*???*)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;FIdHttp.Request.Accept:=&#39;text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8&#39;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;FIdHttp.HandleRedirects := True;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;FIdHttp.ConnectTimeout:=50000;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;FIdHttp.ReadTimeout:=50000;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;FIdHttp.AllowCookies:=True;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;FIdHttp.IOHandler:=FSSL;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;FIdHttp.CookieManager:=FCookie;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;FullUrl:=(SMUrl+Reqest+UrlEnd);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Result:=AnsiLowerCase(FIdHttp.Get(FIdHttp.URL.URLEncode(FullUrl)));</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;except</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Result:=&#39;Error Loadind Page&#39;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Exit;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;end;</div><div class="code_line">&nbsp;&nbsp; &nbsp;finally</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;FreeAndNil(FIdHttp);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;FreeAndNil(FSSL);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;FreeAndNil(FCookie);</div><div class="code_line">&nbsp;&nbsp; &nbsp;end;</div><div class="code_line">end;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
вроде бы все работает, но Мурзилла в сервер отсылает следующее:<br>
<br>
<span class="tag-color tag-color-named" data-value="blue" style="color: blue">GET /search?dlang=0&amp;mimex=0&amp;st_date=&amp;end_date=&amp;news=0&amp;limitcontext=0&amp;exclude=&amp;filter=&amp;sort=3&amp;adult=soft&amp;pagelen=50&amp;query=%D0%B7%D0%B0%D0%B3%D0%BE%D1%82%D0%BE%D0%B2%D0%BA%D0%B0+%D0%B4%D1%80%D0%BE%D0%B2+%D0%BD%D0%B0+%D0%B7%D0%B8%D0%BC%D1%83 HTTP/1.1<br>
Host: nova.rambler.ru<br>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:20.0) Gecko/20100101 Firefox/20.0<br>
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br>
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3<br>
Accept-Encoding: gzip, deflate<br>
DNT: 1<br>
Referer: <a class='tag-url' href='http://nova.rambler.ru/search?dlang=0&mimex=0&st_date=&end_date=&news=0&limitcontext=0&exclude=&filter=&sort=3&adult=soft&pagelen=50&query=%D0%B7%D0%B0%D0%B3%D0%BE%D1%82%D0%BE%D0%B2%D0%BA%D0%B0+%D1%82%D0%BE%D0%BF%D0%BB%D0%B8%D0%B2%D0%B0+%D0%BD%D0%B0+%D0%B7%D0%B8%D0%BC%D1%83' target='_blank'>http://nova.rambler.ru/search?dlang=0&mime...%B8%D0%BC%D1%83</a><br>
Cookie: ruid=9l4ABpCeR1BGIgAAAc5i3wB=; dvr=gUAAAAAAAAAAAAAAAAAAAAAAAAAAAAA:1368360797; lvr=1368363315; xtvrn=&#036;514210&#036;; xtan=-; xtant=1; __utma=21227320.1028535311.1367572614.1367572614.1367572614.1; __utmz=21227320.1367572614.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); dv=gUAAAAAAAAAAAAAAAAAAAAAAAAAAAAA:1368360797; nlv=1368365221; __utma=112620571.1826725587.1367572618.1367759211.1368360808.3; __utmz=112620571.1367759211.2.2.utmcsr=nhp|utmccn=(not%20set)|utmcmd=(not%20set); top100rb=NzQ2KzQ5KzEwNQ==; __utmc=21227320; __utmc=112620571; spravka=d</span><br>
<br>
тогда как загрузчик на idHTTP в сервер шлет:<br>
<br>
<span class="tag-color tag-color-named" data-value="red" style="color: red">GET /search?query=%D1%81%D1%82%D1%80%D0%BE%D0%B8%D1%82%D0%B5%D0%BB%D1%8C%D1%81%D1%82%D0%B2%D0%BE%20%D0%B4%D0%B0%D1%87%D0%BD%D0%BE%D0%B3%D0%BE%20%D0%B4%D0%BE%D0%BC%D0%B8%D0%BA%D0%B0%20%D0%BC%D0%BE%D1%81%D0%BA%D0%B2%D0%B0&amp;dlang=0&amp;mimex=0&amp;st_date=&amp;end_date=&amp;news=0&amp;limitcontext=0&amp;exclude=&amp;filter=&amp;sort=3&amp;pagelen=50&amp;adult=soft HTTP/1.1<br>
Connection: Keep-Alive<br>
Content-Type: text/html; charset=ISO-8859-1<br>
Host: nova.rambler.ru<br>
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br>
Accept-Encoding: identity<br>
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3<br>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:20.0) Gecko/20100101 Firefox/20.0</span><br>
<br>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
заметно что загрузчик забыл отослать Referer и Cookie<br>
в прынципе наверно Referer не очень то и нужно? а вот без Cookie можно очень скоро получить БАН от поисковика<br>
Внимание&#33; Вопросы:<br>
1. так ли нужны Referer и Cookie? (вопрос для тех кто хакал поисковики)<br>
2. как все же запихнуть в поисковик Cookie(использовать POST+СПИСОК вместо GET?)]]></description>
        <author>Pcrepair</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      </channel>
      </rss>
	