{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/43476","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/43476/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/43476/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/43476/events","html_url":"https://github.com/Homebrew/homebrew/issues/43476","id":104310164,"number":43476,"title":"Apache download strategy - mirrors asjson no longer works","user":{"login":"jlaxson","id":97853,"avatar_url":"https://avatars.githubusercontent.com/u/97853?v=3","gravatar_id":"","url":"https://api.github.com/users/jlaxson","html_url":"https://github.com/jlaxson","followers_url":"https://api.github.com/users/jlaxson/followers","following_url":"https://api.github.com/users/jlaxson/following{/other_user}","gists_url":"https://api.github.com/users/jlaxson/gists{/gist_id}","starred_url":"https://api.github.com/users/jlaxson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlaxson/subscriptions","organizations_url":"https://api.github.com/users/jlaxson/orgs","repos_url":"https://api.github.com/users/jlaxson/repos","events_url":"https://api.github.com/users/jlaxson/events{/privacy}","received_events_url":"https://api.github.com/users/jlaxson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-01T16:53:38Z","updated_at":"2015-09-02T00:09:43Z","closed_at":"2015-09-02T00:09:43Z","body":"When installing a source package sourced from apache.org, the Apache download strategy appends `&asjson=1` to the url in order to discover an appropriate mirror.  This appears to no longer work on the Apache side.  \r\n\r\nFor example, https://www.apache.org/dyn/closer.cgi?path=apr/apr-1.5.2.tar.bz2&asjson=1 gives the normal HTML page and not json mirror information.  This results in builds failing to install:\r\n\r\n```\r\n$ brew reinstall apr --build-from-source\r\n==> Reinstalling apr\r\n==> Downloading https://www.apache.org/dyn/closer.cgi?path=apr/apr-1.5.2.tar.bz2\r\nError: Failed to download resource \"apr\"\r\nDownload failed: Couldn't determine mirror, try again later.\r\n```"},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments/136897869","html_url":"https://github.com/Homebrew/homebrew/issues/43476#issuecomment-136897869","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/43476","id":136897869,"user":{"login":"tdsmith","id":173889,"avatar_url":"https://avatars.githubusercontent.com/u/173889?v=3","gravatar_id":"","url":"https://api.github.com/users/tdsmith","html_url":"https://github.com/tdsmith","followers_url":"https://api.github.com/users/tdsmith/followers","following_url":"https://api.github.com/users/tdsmith/following{/other_user}","gists_url":"https://api.github.com/users/tdsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/tdsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdsmith/subscriptions","organizations_url":"https://api.github.com/users/tdsmith/orgs","repos_url":"https://api.github.com/users/tdsmith/repos","events_url":"https://api.github.com/users/tdsmith/events{/privacy}","received_events_url":"https://api.github.com/users/tdsmith/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T00:09:43Z","updated_at":"2015-09-02T00:09:43Z","body":"Looks like this was resolved by Apache."}}