Skip to content

Instantly share code, notes, and snippets.

@sashachabin
Last active August 3, 2021 12:58
Show Gist options
  • Save sashachabin/8fe7a00b51ae44667c511f263d31e439 to your computer and use it in GitHub Desktop.
Save sashachabin/8fe7a00b51ae44667c511f263d31e439 to your computer and use it in GitHub Desktop.
УрФУ. Подключение по telnet (kontur.ru)
Запрос:
$ telnet kontur.ru 80
Trying 46.17.203.102...
Connected to kontur.ru.
Escape character is '^]'.
GET /products/actions HTTP/1.1
Host: kontur.ru
User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9b5) Gecko/2008050509 Firefox/3.0b5
Accept: text/html
Connection: close
Ответ:
HTTP/1.1 301 Moved Permanently
Date: Sat, 23 Sep 2017 09:04:33 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 167
Connection: close
Set-Cookie: sr=1; Path=/
Location: https://kontur.ru/products/actions
<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="https://kontur.ru/products/actions">here</a></body>Connection closed by foreign host.
Сервер вернул ответ с кодом 301 Moved Permanently («перемещено навсегда»).
Перенаправление с "http://" на "https://".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment