<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Скачивание меняющейся ссылки]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=17518</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17518&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Скачивание меняющейся ссылки».]]></description>
		<lastBuildDate>Fri, 16 Dec 2022 17:37:15 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Скачивание меняющейся ссылки]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=156046#p156046</link>
			<description><![CDATA[<p>Просто в процессе сбора ссылок, там попадаются ссылки в таком формате, которые перенаправляют на другие ссылки. ПОэтому требуется получать перенаправляющую ссылку.</p>]]></description>
			<author><![CDATA[null@example.com (peterverhovensky)]]></author>
			<pubDate>Fri, 16 Dec 2022 17:37:15 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=156046#p156046</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Скачивание меняющейся ссылки]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=156045#p156045</link>
			<description><![CDATA[<p>А зачем вообще эта часть нужна?</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Fri, 16 Dec 2022 17:30:39 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=156045#p156045</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Скачивание меняющейся ссылки]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=156044#p156044</link>
			<description><![CDATA[<p>Судя по браузеру, ссылка из кода при переходе меняется, отбрасывая эту часть: <strong>-kn-1-5-9</strong>. Как получить перенаправляющую ссылку из RequestHeader?</p><div class="codebox"><pre><code>
      url:= &quot;https://azbyka.ru/otechnik/Avrelij_Avgustin/svjatitel-avgustin-ipponijskij-o-kreshhenii-protiv-donatistov-kn-1-5-9/&quot;
      HTTPMsxml2 := ComObjCreate(&quot;WinHTTP.WinHTTPRequest.5.1&quot;)
      ;HTTPMsxml2 := ComObjCreate(&quot;Msxml2.XMLHTTP.6.0&quot;)
      HTTPMsxml2.Open(&quot;GET&quot;, url, 1)
      HTTPMsxml2.SetRequestHeader(&quot;Pragma&quot;, &quot;no-cache&quot;)
      HTTPMsxml2.SetRequestHeader(&quot;Cache-Control&quot;, &quot;no-cache, no-store&quot;)
      HTTPMsxml2.SetRequestHeader(&quot;If-Modified-Since&quot;, &quot;Sat, 1 Jan 2000 00:00:00 GMT&quot;)
      HTTPMsxml2.SetRequestHeader(&quot;User-Agent&quot;, &quot;Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36&quot;)

      HTTPMsxml2.SetRequestHeader(&quot;authority&quot;, &quot;azbyka.ru&quot;)
      HTTPMsxml2.SetRequestHeader(&quot;scheme&quot;, &quot;https&quot;)
      ;HTTPMsxml2.SetRequestHeader(&quot;path&quot;, url)
      HTTPMsxml2.SetRequestHeader(&quot;upgrade-insecure-requests&quot;, &quot;1&quot;)
      HTTPMsxml2.SetRequestHeader(&quot;accept&quot;, &quot;text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9&quot;)
      HTTPMsxml2.SetRequestHeader(&quot;sec-fetch-site&quot;, &quot;none&quot;)
      HTTPMsxml2.SetRequestHeader(&quot;sec-fetch-mode&quot;, &quot;navigate&quot;)
      HTTPMsxml2.SetRequestHeader(&quot;sec-fetch-user&quot;, &quot;?1&quot;)
      HTTPMsxml2.SetRequestHeader(&quot;sec-fetch-dest&quot;, &quot;document&quot;)
      HTTPMsxml2.SetRequestHeader(&quot;accept-encoding&quot;, &quot;gzip, deflate, br&quot;)
      HTTPMsxml2.SetRequestHeader(&quot;referer&quot;, &quot;https://azbyka.ru&quot;)

      HTTPMsxml2.Send()
      HTTPMsxml2.WaitForResponse()
      ResponseHeaders := HTTPMsxml2.getAllResponseHeaders() ;!!
      msgbox, ResponseHeaders:`n`n%ResponseHeaders%
      html := HTTPMsxml2.ResponseText
      msgbox % html
      ExitApp</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (peterverhovensky)]]></author>
			<pubDate>Fri, 16 Dec 2022 17:21:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=156044#p156044</guid>
		</item>
	</channel>
</rss>
