⚖ Compare news

Put up to three stories side by side. Pick IDs from any article URL: /compare?id=123&id=456

Как проверить, что за HTTP 200 открывается нужная статья

habrahabr.ru ·Russian Federation · world
Words
54
Chars
358
AI summary
Yes
Full story

A monitoring check requests an article link and gets an HTTP 200 OK, so the dashboard shows a green mark. When the same link is opened without the author's cookies, however, a login form appears instead. The article asks how the check could miss that difference. It proposes breaking the training failure into steps and testing a classifier on six responses. Python 3.10 and the standard library are enough to run it.

Мониторинг проверяет ссылку на статью и получает 200 OK . На дашборде загорается зелёная отметка. Открываете ту же ссылку без авторских cookies и видите форму входа. Как проверка могла пропустить такую разницу? Разложим этот учебный сбой на шаги и проверим классификатор на шести ответах. Для запуска хватит Python 3.10 и стандартной библиотеки. Читать далее

Open article