{"action":"created","issue":{"url":"https://api.github.com/repos/jhermann/artifactory-debian/issues/6","repository_url":"https://api.github.com/repos/jhermann/artifactory-debian","labels_url":"https://api.github.com/repos/jhermann/artifactory-debian/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/jhermann/artifactory-debian/issues/6/comments","events_url":"https://api.github.com/repos/jhermann/artifactory-debian/issues/6/events","html_url":"https://github.com/jhermann/artifactory-debian/issues/6","id":148069249,"number":6,"title":"_check_url function doesn't use login credentials","user":{"login":"talcloudshare","id":11614000,"avatar_url":"https://avatars.githubusercontent.com/u/11614000?v=3","gravatar_id":"","url":"https://api.github.com/users/talcloudshare","html_url":"https://github.com/talcloudshare","followers_url":"https://api.github.com/users/talcloudshare/followers","following_url":"https://api.github.com/users/talcloudshare/following{/other_user}","gists_url":"https://api.github.com/users/talcloudshare/gists{/gist_id}","starred_url":"https://api.github.com/users/talcloudshare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talcloudshare/subscriptions","organizations_url":"https://api.github.com/users/talcloudshare/orgs","repos_url":"https://api.github.com/users/talcloudshare/repos","events_url":"https://api.github.com/users/talcloudshare/events{/privacy}","received_events_url":"https://api.github.com/users/talcloudshare/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-13T13:56:15Z","updated_at":"2016-04-13T15:15:59Z","closed_at":null,"body":"When there's a changes file, it results in:\r\n\r\nD: webdav: Checking URL '...changes'\r\nwebdav: FATAL: Overwriting existing changes at '...changes' not allowed: HTTP Error 401: Unauthorized\r\n"},"comment":{"url":"https://api.github.com/repos/jhermann/artifactory-debian/issues/comments/209502728","html_url":"https://github.com/jhermann/artifactory-debian/issues/6#issuecomment-209502728","issue_url":"https://api.github.com/repos/jhermann/artifactory-debian/issues/6","id":209502728,"user":{"login":"talcloudshare","id":11614000,"avatar_url":"https://avatars.githubusercontent.com/u/11614000?v=3","gravatar_id":"","url":"https://api.github.com/users/talcloudshare","html_url":"https://github.com/talcloudshare","followers_url":"https://api.github.com/users/talcloudshare/followers","following_url":"https://api.github.com/users/talcloudshare/following{/other_user}","gists_url":"https://api.github.com/users/talcloudshare/gists{/gist_id}","starred_url":"https://api.github.com/users/talcloudshare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talcloudshare/subscriptions","organizations_url":"https://api.github.com/users/talcloudshare/orgs","repos_url":"https://api.github.com/users/talcloudshare/repos","events_url":"https://api.github.com/users/talcloudshare/events{/privacy}","received_events_url":"https://api.github.com/users/talcloudshare/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T15:15:59Z","updated_at":"2016-04-13T15:15:59Z","body":"I don't have push permissions, but this should do the trick:\r\n\r\n`    trace(\"Checking URL '%(url)s'\", url=url)\r\n    try:\r\n        request = urllib2.Request(url)\r\n        request.add_header(\"Authorization\", 'Basic %s' % login.encode('base64').replace('\\n', '').strip())\r\n        with closing(urllib2.urlopen(request)) as handle:`"}}