<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Mikrotik.moscow [тема: Пользовательский агент с инструментом fetch]</title>
		<link>http://mikrotik.moscow</link>
		<description>Новое в теме Пользовательский агент с инструментом fetch форума RouterOS на сайте Mikrotik.moscow [mikrotik.moscow]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Sat, 01 Aug 2026 06:48:36 -0400</pubDate>
		<item>
			<title>Пользовательский агент с инструментом fetch</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393345">Пользовательский агент с инструментом fetch</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Просто используй http-header-field="user-agent: useragent" &gt; :put ([/tool fetch url="http://postman-echo.com/get" http-header-field="user-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0" output=user]-&gt;"data")<br /> &nbsp; &nbsp; &nbsp;статус: выполнено<br /> &nbsp;загружено: 0KiBC-z пауза]<br /> &nbsp; &nbsp; &nbsp; &nbsp;данные: { "args": {}, "headers": { "x-forwarded-proto": "http", "x-forwarded-port": "80", "host": "postman-echo.com", "x-amzn-trace-id": "Root=1-6511a09c-59322be6549949c957d1ae2c", "user-agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0" }, "url": "http://postman-echo.com/get" } <br />
			<i>25.09.2023 15:08:00, alexwoo.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393345</link>
			<guid>http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393345</guid>
			<pubDate>Mon, 25 Sep 2023 15:08:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Пользовательский агент с инструментом fetch</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393344">Пользовательский агент с инструментом fetch</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Извиняюсь, что воскресил старую тему, но как вам удалось добиться добавления? Я использовал точно такую же строку, а в ответ получил ‘Mikrotik/6.x Fetch’. У меня версия 6.47.1. Команда: &nbsp;<br />/tool fetch url="http://postman-echo.com/get" http-header-field="User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0"<br /><br />Результаты: &nbsp;<br />{"args":{},"headers":{"x-forwarded-proto":"http","x-forwarded-port":"80","host":"postman-echo.com","x-amzn-trace-id":"Root=1-5f1f0b8a-fc7505a8e28e38802ca59cf8","user-agent":"Mikrotik/6.x Fetch"},"url":"http://postman-echo.com/get"} &nbsp;<br /><br /><noindex><a href="http://postman-echo.com/get" target="_blank" rel="nofollow" >http://postman-echo.com/get</a></noindex> просто возвращает то, что получает. <br />
			<i>27.07.2020 17:22:00, seedbedUnmoved.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393344</link>
			<guid>http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393344</guid>
			<pubDate>Mon, 27 Jul 2020 17:22:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Пользовательский агент с инструментом fetch</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393343">Пользовательский агент с инструментом fetch</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			/tool fetch url=“ <noindex><a href="http://example.com/" target="_blank" rel="nofollow" >http://example.com/</a></noindex> ” http-header-field=“User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0” HTTP_USER_AGENT: Mikrotik/6.x Fetch, Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0 Похоже, что заменить нельзя, просто добавьте к “Mikrotik/6.x Fetch” <br />
			<i>27.11.2019 11:22:00, digitik.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393343</link>
			<guid>http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393343</guid>
			<pubDate>Wed, 27 Nov 2019 11:22:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Пользовательский агент с инструментом fetch</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393342">Пользовательский агент с инструментом fetch</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			/ tool fetch http-header-field="User-Agent: Mozilla/4.0" ... <br />
			<i>19.07.2019 21:21:00, eworm.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393342</link>
			<guid>http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393342</guid>
			<pubDate>Fri, 19 Jul 2019 21:21:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Пользовательский агент с инструментом fetch</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393341">Пользовательский агент с инструментом fetch</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Нет, к сожалению. Я всё ещё не верю, что есть способ добавить или настроить user agent для запросов, хотя я и не пробовал делать это заново на последних версиях Router OS. <br />
			<i>19.07.2019 13:44:00, ilovepancakes.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393341</link>
			<guid>http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393341</guid>
			<pubDate>Fri, 19 Jul 2019 13:44:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Пользовательский агент с инструментом fetch</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393340">Пользовательский агент с инструментом fetch</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Я в той же лодке и получаю такую же ошибку, ты как-то смог это исправить? Спасибо, Tugsynz <br />
			<i>18.07.2019 20:26:00, tugsynz.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393340</link>
			<guid>http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393340</guid>
			<pubDate>Thu, 18 Jul 2019 20:26:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Пользовательский агент с инструментом fetch</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393339">Пользовательский агент с инструментом fetch</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Использую следующий код, чтобы попытаться обновить запись Google DDNS с текущим IP, всё вроде работает корректно при взаимодействии с Google, но Google возвращает ошибку «badagent», так как в запросе должен быть указан корректный user agent, чтобы запрос приняли. Как можно задать и/или настроить user agent, который отправляется вместе с URL-запросом через fetch?<br /><br /># Переменные &nbsp;<br /># Имя пользователя и пароль — это длинные криптографические данные, которые предоставляет Google Domains, &nbsp;<br /># а не ваши обычные данные аккаунта Google &nbsp;<br />:local GoogleDNSUsername "gbML26UKGdjm7Oz1" &nbsp;<br />:local GoogleDNSPassword "ASmwlKjCAkEywaZC" &nbsp;<br />:local hostName "test.twinstar5.com" &nbsp;<br />:local currentIP "" &nbsp;<br />:local setResults "" &nbsp;<br />:local previousIP "" &nbsp;<br /><br /># Скрипт &nbsp;<br />:set currentIP [/ip cloud get public-address]  <br />:set previousIP [:resolve "$hostName"]  <br /><br />:if ($currentIP != $previousIP) do={ &nbsp;<br /> &nbsp;:do { &nbsp;<br /> &nbsp; &nbsp;/tool fetch url="https://$GoogleDNSUsername:$GoogleDNSPassword@domains.google.com/nic/update?hostname=$hostName&myip=$currentIP" mode=https dst-path=GoogleDNS.txt &nbsp;<br /> &nbsp; &nbsp;:set setResults [/file get GoogleDNS.txt contents];  <br /> &nbsp; &nbsp;:log info ("GoogleDNS сказал следующее: $setResults") &nbsp;<br /> &nbsp;} on-error={ &nbsp;<br /> &nbsp; &nbsp;:log error ("GoogleDNS: скрипт не смог установить новый IP-адрес") &nbsp;<br /> &nbsp;} &nbsp;<br />} <br />
			<i>04.10.2018 01:58:00, ilovepancakes.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393339</link>
			<guid>http://mikrotik.moscow/forum/forum57/85114-polzovatelskiy-agent-s-instrumentom-fetch/message393339</guid>
			<pubDate>Thu, 04 Oct 2018 01:58:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
	</channel>
</rss>
