Created
March 9, 2023 09:38
-
-
Save pimiento/2ccafb7ad11a33b77d72b06a04fa9c73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
++ jq -r '.["rabota.ru"]["access_token"]' | |
+ TOKEN=igGJsM7DJuLTnRiDPk87cqi2bfanhs6i | |
+ SECRET=2GT4JbcP7CmDkwKShkLZPm1uAZMLS6Nw | |
+ APP_ID=517 | |
++ date +%s | |
+ params='{"app_id":"517","time":"1678354730","token":"igGJsM7DJuLTnRiDPk87cqi2bfanhs6i"}' | |
++ echo -n '{"app_id":"517","time":"1678354730","token":"igGJsM7DJuLTnRiDPk87cqi2bfanhs6i"}2GT4JbcP7CmDkwKShkLZPm1uAZMLS6Nw' | |
++ sha256sum | |
++ cut -d ' ' -f 1 | |
+ signature=1b644fc8ed3692822b2590ae9a533f063340ee1b736f6e66da03311a9d6ff960 | |
+ jq --arg signature 1b644fc8ed3692822b2590ae9a533f063340ee1b736f6e66da03311a9d6ff960 '. += {"signature": $signature}' | |
+ http -v POST https://api.rabota.ru/oauth/refresh-token.json | |
+ echo '{"app_id":"517","time":"1678354730","token":"igGJsM7DJuLTnRiDPk87cqi2bfanhs6i"}' | |
POST /oauth/refresh-token.json HTTP/1.1 | |
User-Agent: HTTPie/1.0.3 | |
Accept-Encoding: gzip, deflate | |
Accept: application/json, */* | |
Connection: keep-alive | |
Content-Type: application/json | |
Content-Length: 176 | |
Host: api.rabota.ru | |
{ | |
"app_id": "517", | |
"time": "1678354730", | |
"token": "igGJsM7DJuLTnRiDPk87cqi2bfanhs6i", | |
"signature": "1b644fc8ed3692822b2590ae9a533f063340ee1b736f6e66da03311a9d6ff960" | |
} | |
HTTP/1.1 401 Unauthorized | |
Server: QRATOR | |
Date: Thu, 09 Mar 2023 09:38:51 GMT | |
Content-Type: text/html; charset=utf-8 | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
Keep-Alive: timeout=15 | |
set-cookie: sid=9yQpIgu8gyGEVmMmeejlcr1r3ji3ypnm; expires=Thu, 09-Mar-2023 10:38:51 GMT; Max-Age=3600; path=/; domain=.rabota.ru | |
pragma: no-cache | |
cache-control: no-cache, no-store, must-revalidate, no-transform, max-age=0 | |
set-cookie: sid=9yQpIgu8gyGEVmMmeejlcr1r3ji3ypnm; expires=Thu, 09-Mar-2023 10:38:51 GMT; Max-Age=3600; path=/; domain=.rabota.ru | |
access-control-allow-origin: * | |
X-XSS-Protection: 1; mode=block | |
Referrer-Policy: origin | |
Cache-Control: no-cache, no-store, must-revalidate | |
Pragma: no-cache | |
Expires: 0 | |
Set-Cookie: qrator_ssid=1678354731.401.LjoXN0HF8BFL7RnU-361c5n9uvmhrrkge3rl04ugmu5nvq4k6; Max-Age=2000; Domain=.rabota.ru; Path=/ | |
<!doctype html> | |
<html lang="ru"> | |
<head> | |
<title>401 - Не авторизован</title> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<meta http-equiv="content-language" content="ru" /> | |
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> | |
<style> | |
html,body { padding:0; margin:0; background:#fff; color:#000; height:100%; font-family: Arial, Helvetica, Verdana, sans-serif;} | |
main { width: 1000px; margin: 100px auto; } | |
h1 {color:#C0392B;float: left; font-size: 128px;line-height: 90px;margin: 0 20px 20px 0;} | |
h2 {color:#C0392B;margin: 0;} | |
h3 {font-size: 16px;margin: 10px 0 0 0;} | |
a { color:#275a95!important; border:none!important; font-weight:bold!important; } | |
a:hover { color:#C0392B!important; text-decoration: none; } | |
p { margin: 10px 0 0 0; font-size: 14px;} | |
pre {font-family: monospace; font-size: 11px; border-top: solid 2px #C0392B;clear: both;margin: 40px 0 0 0;} | |
pre.sql {border: none;} | |
section {margin: 40px 0 0 0; color: #000; overflow-y: auto;background: #fff;counter-reset: item;list-style: none;} | |
section ol {list-style: none;padding: 0;margin: 0;} | |
section li {font: 11px/14px monospace;} | |
section li:before {font: 11px/14px monospace;color: #999;display: inline-block;content: counter(item);counter-increment: item;width: 30px;text-align: right;margin-right: 20px;} | |
section li pre {font: 11px/14px monospace; color: #000;margin: 0;padding: 0;border: none;display: inline-block;tab-size: 4;-moz-tab-size: 4;} | |
section li.selected {background: #ffd4d4;} | |
</style> | |
</head> | |
<body> | |
<main> | |
<h1>401</h1> | |
<h2>Не авторизован</h2> | |
<p>Извините за неудобства. Вероятно, ссылка, по которой вы сюда попали, устарела, | |
или вы ошиблись, когда набирали адрес. Можно попробывать повторить попытку через некоторое | |
<a href="javascript:location.reload()">время</a>. Если ошибка повторяется, сообщите об этом администратору сайта | |
<a href="mailto:support@rabota.ru">support@rabota.ru</a>.</p> | |
</main> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment