{"action":"created","issue":{"url":"https://api.github.com/repos/nextgis/nextgisweb/issues/415","repository_url":"https://api.github.com/repos/nextgis/nextgisweb","labels_url":"https://api.github.com/repos/nextgis/nextgisweb/issues/415/labels{/name}","comments_url":"https://api.github.com/repos/nextgis/nextgisweb/issues/415/comments","events_url":"https://api.github.com/repos/nextgis/nextgisweb/issues/415/events","html_url":"https://github.com/nextgis/nextgisweb/issues/415","id":127103570,"number":415,"title":"403 при получении WMS GetCapabilities","user":{"login":"drnextgis","id":866124,"avatar_url":"https://avatars.githubusercontent.com/u/866124?v=3","gravatar_id":"","url":"https://api.github.com/users/drnextgis","html_url":"https://github.com/drnextgis","followers_url":"https://api.github.com/users/drnextgis/followers","following_url":"https://api.github.com/users/drnextgis/following{/other_user}","gists_url":"https://api.github.com/users/drnextgis/gists{/gist_id}","starred_url":"https://api.github.com/users/drnextgis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drnextgis/subscriptions","organizations_url":"https://api.github.com/users/drnextgis/orgs","repos_url":"https://api.github.com/users/drnextgis/repos","events_url":"https://api.github.com/users/drnextgis/events{/privacy}","received_events_url":"https://api.github.com/users/drnextgis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-17T15:48:34Z","updated_at":"2016-04-12T08:23:24Z","closed_at":"2016-04-12T04:30:44Z","body":"Причина в дефолтном заголовке библиотеки Requests:\r\n`'User-Agent': 'python-requests/2.7.0 CPython/2.7.6 Linux/3.19.0-43-generic'`\r\n\r\nПроверка:\r\n```\r\n>>> import requests\r\n>>> r = requests.get('http://maps.rosreestr.ru/arcgis/services/Cadastre/CadastreWMS/MapServer/WMSServer?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities')\r\n>>> r.text\r\nu'<!DOCTYPE html>\\n<html>\\n  <head>\\n    <title>403 Access denied. Code 0x10.</title>\\n  </head>\\n  <body>\\n    <h1>Error 403 Access denied. Code 0x10.</h1>\\n    <p>Access denied. Code 0x10.</p>\\n    <h3>Guru Meditation:</h3>\\n    <p>XID: 341663233</p>\\n    <hr>\\n    <p>Varnish cache server</p>\\n  </body>\\n</html>\\n'\r\n>>> r = requests.get('http://maps.rosreestr.ru/arcgis/services/Cadastre/CadastreWMS/MapServer/WMSServer?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities', headers={'user-agent': 'NextGIS Web'})\r\n>>> r.text\r\nu'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n<WMT_MS_Capabilities version=\"1.1.1\">...\r\n```"},"comment":{"url":"https://api.github.com/repos/nextgis/nextgisweb/issues/comments/208777774","html_url":"https://github.com/nextgis/nextgisweb/issues/415#issuecomment-208777774","issue_url":"https://api.github.com/repos/nextgis/nextgisweb/issues/415","id":208777774,"user":{"login":"drnextgis","id":866124,"avatar_url":"https://avatars.githubusercontent.com/u/866124?v=3","gravatar_id":"","url":"https://api.github.com/users/drnextgis","html_url":"https://github.com/drnextgis","followers_url":"https://api.github.com/users/drnextgis/followers","following_url":"https://api.github.com/users/drnextgis/following{/other_user}","gists_url":"https://api.github.com/users/drnextgis/gists{/gist_id}","starred_url":"https://api.github.com/users/drnextgis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drnextgis/subscriptions","organizations_url":"https://api.github.com/users/drnextgis/orgs","repos_url":"https://api.github.com/users/drnextgis/repos","events_url":"https://api.github.com/users/drnextgis/events{/privacy}","received_events_url":"https://api.github.com/users/drnextgis/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T08:23:24Z","updated_at":"2016-04-12T08:23:24Z","body":"Нет, я об этом написал в сообщении к коммиту."}}