<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AutoIt: Получить заголовок страницы в Интернете]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=12590&amp;type=atom" />
	<updated>2017-04-05T10:41:14Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=12590</id>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить заголовок страницы в Интернете]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=114619#p114619" />
			<content type="html"><![CDATA[<p>Для любой задачи лучше. Прежде всего с точки зрения безопасности.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-04-05T10:41:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=114619#p114619</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить заголовок страницы в Интернете]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=114617#p114617" />
			<content type="html"><![CDATA[<p>Для данной задачи любой сойдет.<br />Когда действительно важно использовать лучший вариант, делаю так:</p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>function XMLHTTP_Init() {
	var progID = [&#039;Msxml2.ServerXMLHTTP.6.0&#039;, &#039;Msxml2.XMLHTTP.6.0&#039;, &#039;Msxml2.XMLHTTP.5.0&#039;, &#039;Msxml2.XMLHTTP.4.0&#039;, &#039;Microsoft.XMLHTTP&#039;];
	for (var i = 0; i &lt; progID.length; i++) {
		try {
			httpRequest = new ActiveXObject(progID[i]);
			if (i &gt; 3) alert(&quot;Отправка файлов статотчетности работать не будет!\nУстановите более позднюю версию MSXML.&quot;);
			if (i &lt; 1) {
				var Timeout_Resolve = 50*1000;
				var Timeout_Connect = 50*1000;
				var Timeout_Send = 150*1000;
				var Timeout_Receive = 150*1000;
				httpRequest.setTimeouts(Timeout_Resolve, Timeout_Connect, Timeout_Send, Timeout_Receive);
			}
			return httpRequest;
		}
		catch (e) {}
	}
	alert(msxml_alert);
	self.close();
}</code></pre></div></div></div>]]></content>
			<author>
				<name><![CDATA[mozers]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=4112</uri>
			</author>
			<updated>2017-04-05T10:35:56Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=114617#p114617</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить заголовок страницы в Интернете]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=114616#p114616" />
			<content type="html"><![CDATA[<p>Да, но чем выше версия, тем лучше.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-04-05T10:05:48Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=114616#p114616</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить заголовок страницы в Интернете]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=114615#p114615" />
			<content type="html"><![CDATA[<p>ActiveX с именем &#039;Microsoft.XMLHTTP&#039; имеется на всех ОСях начиная с ХР.</p>]]></content>
			<author>
				<name><![CDATA[mozers]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=4112</uri>
			</author>
			<updated>2017-04-05T10:01:34Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=114615#p114615</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить заголовок страницы в Интернете]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=114608#p114608" />
			<content type="html"><![CDATA[<p>Вопрос про ОС неправильный. Речь должна идти о версиях и SP одной ОС.<br />На XP+ без сноса IE или блокировки выполнения ActiveX (в т.ч. выборочно через реестр) всё должно работать.<br />Разве что 6 можно заменить на 3 или 4, если её нет на XP с пакетом не новее SP2.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-04-05T05:20:10Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=114608#p114608</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить заголовок страницы в Интернете]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=114607#p114607" />
			<content type="html"><![CDATA[<p>Прекрасно. Но есть вопрос. А будет ли работать этот скрипт во всех операционных системах?</p><p>Я имею ввиду, существует ли <strong>XMLHTTP</strong> - интерфейс в системах, начиная с ХР, и кончая 10-ой.<br />Или это зависит от комплектации и сервиспаков?<br />Также, я знаю, что объект <strong>htmlfile</strong> не везде поддерживается.</p>]]></content>
			<author>
				<name><![CDATA[Parazit]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34289</uri>
			</author>
			<updated>2017-04-05T02:32:30Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=114607#p114607</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить заголовок страницы в Интернете]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=114595#p114595" />
			<content type="html"><![CDATA[<p>Допустим (так же на других языках):</p><div class="codebox"><pre><code>$Title = &#039; Получить заголовок по URL&#039;
$URL = StringStripWS(InPutBox($Title, &#039;Введите URL-адрес:&#039;, _
&#039;http://forum.script-coding.com&#039;,&#039;&#039;, 300, 136), 7)
If $URL = &#039;&#039; Then Exit

$HTTP = ObjCreate(&#039;MSXML2.XMLHTTP.6.0&#039;)
$HTTP.Open(&#039;GET&#039;, $URL, false)
$HTTP.Send

With ObjCreate(&#039;htmlfile&#039;)
  .DesignMode = &#039;on&#039;
  .Write($HTTP.ResponseText)
  .Close
  MsgBox(0,&#039;&#039;, .Title, $Title)
EndWith</code></pre></div><p>Либо находим гуглом <a href="https://www.autoitscript.com/forum/topic/144662-inetget-get-file-name-from-http-header/#comment-1020414">такое</a>.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-04-04T16:33:58Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=114595#p114595</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AutoIt: Получить заголовок страницы в Интернете]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=114588#p114588" />
			<content type="html"><![CDATA[<p>Привет. Такая задача.<br />Надо получить заголовок страницы, которая расположена на удалённом сервере.<br />Т.е., надо получить текст между тэгами &lt;TITLE&gt;.<br />С помощью каких <strong>встроенных</strong> функций можно такое сделать?</p>]]></content>
			<author>
				<name><![CDATA[Parazit]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34289</uri>
			</author>
			<updated>2017-04-04T09:44:35Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=114588#p114588</id>
		</entry>
</feed>
