{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/c6a5e82eb340f33b10ca35dd236e05a1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c6a5e82eb340f33b10ca35dd236e05a1","url":"https://api.github.com/users/glynnbird","login":"glynnbird","id":697925},"assignee":null,"updated_at":"2011-11-15T11:07:19Z","labels":[],"comments":1,"closed_at":null,"url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/1432","body":"The plugin installation script fails if GitHub decides not to serve out zip files directly but through a HTTP 302 re-direct.\r\n\r\n````$ ./bin/plugin -install mobz/elasticsearch-head\r\n-> Installing mobz/elasticsearch-head...\r\nTrying https://github.com/downloads/mobz/elasticsearch-head/elasticsearch-head-0.18.1.zip...\r\nTrying https://github.com/mobz/elasticsearch-head/zipball/v0.18.1...\r\nTrying https://github.com/mobz/elasticsearch-head/zipball/master...\r\nFailed to install mobz/elasticsearch-head, reason: failed to download\r\n````\r\nThe first two attempts would fail (because those files don't exist) but the master one should succeed. Trying with curl reveals that GitHub is in the mood to redirect requests to another server:\r\n\r\n````$ curl -i 'https://github.com/mobz/elasticsearch-head/zipball/master'\r\nHTTP/1.1 302 Found\r\nServer: nginx/1.0.4\r\nDate: Fri, 28 Oct 2011 10:40:08 GMT\r\nContent-Type: text/html; charset=utf-8\r\nConnection: keep-alive\r\nStatus: 302 Found\r\nX-Frame-Options: deny\r\nLocation: https://nodeload.github.com/mobz/elasticsearch-head/zipball/master\r\nX-Runtime: 8ms\r\nContent-Length: 132\r\nSet-Cookie: _gh_sess=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D--ed7eadd474fd37850b68bd3c08a5c55ad0c3c833; path=/; expires=Fri, 01 Jan 2021 00:00:00 GMT; secure; HttpOnly\r\nCache-Control: no-cache\r\nStrict-Transport-Security: max-age=2592000\r\n````\r\n\r\nPerhaps the plugin installation script should be follow the redirect.","html_url":"https://github.com/elasticsearch/elasticsearch/issues/1432","title":"plugin script fails to follow github redirect","number":1432,"id":2083776,"created_at":"2011-10-28T21:05:25Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/fd44bb3c96e34e000c5453a0078900d6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"fd44bb3c96e34e000c5453a0078900d6","url":"https://api.github.com/users/kimchy","login":"kimchy","id":41300},"updated_at":"2011-11-15T11:07:19Z","url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/comments/2743460","body":"Strange..., there is code that follows redirects, and installing it works well for me. Do you still have the problem?","id":2743460,"created_at":"2011-11-15T11:07:19Z"}}