title: wrong status line: "TTP/1.1 302 Found"
body: <p>I'm doing an HTTP request from a Rails action like so:</p>
  
  <pre><code>class TeamController &lt; ApplicationController 
    def test
      _uri = 'http://v.youku.com/player/getPlayList/VideoIDS/XNjQyNjg3ODg0_ev_5'
      _html_response = nil
      open(_uri) do |http|
        _html_response = http.read
      end
      render text: _html_response
    end
  end
  </code></pre>
  
  <p>But I get the error:</p>
  
  <blockquote>
    <p>wrong status line: "TTP/1.1 302 Found"</p>
  </blockquote>
  
  <p>But I used the same code in a simple Ruby file and I got the response without any errors. What am I doing wrong?</p>