title: Curl returns Error status 22 when installing rvm from get.rvm.io
body: <p>I was trying to install Ruby on Rails using RVM. As the first step, I had to download rvm and used  the following code.</p>
  
  <pre><code>curl -L get.rvm.io | bash -s stable
  </code></pre>
  
  <p>It seems like curl have successfully downloaded the file from get.rvm.io and called bash to run it.
  The downloaded script is attempting to download rvm installation file but fails with following error.</p>
  
  <pre><code>Could not download 'https://github.com/wayneeseguin/rvm/archive/stable.tar.gz'.
  curl returned status '22'.
  </code></pre>
  
  <p>All the answers given at <a href="https://stackoverflow.com/questions/15730689/cant-install-rvm-on-linux-mint-14">https://stackoverflow.com/questions/15730689/cant-install-rvm-on-linux-mint-14</a> and
  <a href="https://stackoverflow.com/questions/15701058/error-installing-rvm-ruby-version-manager">Error installing rvm (Ruby version Manager)</a></p>
  
  <p>are tried but failed to resolve the problem.</p>
  
  <p>Is there any method to resolve this problem or an alternate way to install latest version of Ruby and Ruby on Rails (with or without using rvm).</p>
  
  <p>I was able to reproduce the error on two different PCs on two different networks with Linux Mint 12 and Linux mint 14.</p>
  
  <p>Here is the command-line output shown:</p>
  
  <pre><code>curl -L get.rvm.io | bash -s stable
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                               Dload  Upload   Total   Spent    Left  Speed
  100   184  100   184    0     0    142      0  0:00:01  0:00:01 --:--:--   508
  100 13784  100 13784    0     0   4588      0  0:00:03  0:00:03 --:--:-- 24353
  Downloading RVM from wayneeseguin branch stable
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
  100   124  100   124    0     0     88      0  0:00:01  0:00:01 --:--:--   128
    0   124    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
  curl: (22) The requested URL returned error: 502
  
  Could not download 'https://github.com/wayneeseguin/rvm/archive/stable.tar.gz'.
    curl returned status '22'.
  </code></pre>