title: Rails + Nokogiri + Heroku - response 503 for URLs from StackOverflow
body: <p>I'm writing a just-for-fun app for my use. In this app I'm putting URLs in classic POST form from which I'm extracting some informations. For example, this line is where I'm extracting the title of the page:</p>
  
  <pre><code>self.name = Nokogiri::HTML(open(self.url)).css('title').to_s.sub('&lt;title&gt;','').to_s.sub('&lt;/title&gt;','')
  </code></pre>
  
  <p>I'm using Nokogiri (v1.5.4) for parsing data from the source page. I don't know if I'm missing here something, but the behavior of the application is strange.</p>
  
  <p>If I'm running on my localhost in my development environment on my machine, everything works properly and seems to me alright. But, after pushing on Heroku, some problems occurred. For example, <a href="https://stackoverflow.com/questions/11681526/rails-precedence-on-class-method-vs-database-field">URLs from StackOverflow</a> always have this type of error:</p>
  
  <pre><code>OpenURI::HTTPError (503 Service Unavailable):
  app/models/url.rb:67:in `set_name'
  app/controllers/urls_controller.rb:48:in `block in create'
  app/controllers/urls_controller.rb:46:in `create'
  </code></pre>
  
  <p>I don't understand why it is happening just on Heroku. On my local machine it's working perfectly with the same URL. I'm maybe missing something with Heroku, but other URLs are returning the normal 200 state and working fine. It's just URLs from StackOverflow.</p>