I ask you to help with getting an answer when requesting a http site.
When you request a site using curl:
Code: Select all
C:\Users>curl example.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Found</TITLE></HEAD><BODY>
<H1>302 Found</H1>
The document has moved
<A HREF="http://zero.2090000.ru">here</A>
</BODY></HTML>
Code: Select all
C:\Users>curl -s -I example.com
HTTP/1.1 302 Found
Content-Length: 219
Location: http://zero.2090000.ru
Content-Type: text/html; charset=UTF-8
When I request through mikrotik, I get an error and the inability to pass to a variable (I don’t know how to do this), what would I process further.
Code: Select all
[user@mtgw] > :global value [/tool fetch url=http://example.com/ output=user]
status: failed
failure: closing connection: <302 Found "http://zero.2090000.ru"> 193.232.46.60:80 (4)