<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Скачивание меняющейся ссылки]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17518&amp;type=atom" />
	<updated>2022-12-16T17:37:15Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17518</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скачивание меняющейся ссылки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156046#p156046" />
			<content type="html"><![CDATA[<p>Просто в процессе сбора ссылок, там попадаются ссылки в таком формате, которые перенаправляют на другие ссылки. ПОэтому требуется получать перенаправляющую ссылку.</p>]]></content>
			<author>
				<name><![CDATA[peterverhovensky]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41360</uri>
			</author>
			<updated>2022-12-16T17:37:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156046#p156046</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скачивание меняющейся ссылки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156045#p156045" />
			<content type="html"><![CDATA[<p>А зачем вообще эта часть нужна?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-12-16T17:30:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156045#p156045</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Скачивание меняющейся ссылки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156044#p156044" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[peterverhovensky]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41360</uri>
			</author>
			<updated>2022-12-16T17:21:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156044#p156044</id>
		</entry>
</feed>
