I'm building an application using open-uri and hpricot for html contents
of a web page. The problem is when i enter the url of youtube
ie.'http://www.youtube.com' an error is shown stating:

/usr/lib/ruby/1.8/open-uri.rb:277:in `open_http': 400 Bad Request
(OpenURI::HTTPError)
  from /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
  from /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
  from /usr/lib/ruby/1.8/open-uri.rb:162:in `catch'
  from /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
  from /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
  from /usr/lib/ruby/1.8/open-uri.rb:518:in `open'
  from /usr/lib/ruby/1.8/open-uri.rb:30:in `open'
  from htmlParse.rb:32

I dont know why it is shown like this. I can get the data of other url's
except this one. Can anybody please help. It is urgent.

Regards,
Arun Kumar
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to