The problem is when I set the the search field "Matriculation year" as
2005 to 2014, I am getting the url 
"https://www.kleyntrucks.com/truck/add-facet-value/field/imprp0/from/2005" 
from the firebug network tab(request), and if I open also the response 
tab, I am getting the correct html, as it is showing in the page.


But I am getting completely different response html, when I am doing the 
below :

require "net/http"
require "uri"

uri = 
URI.parse("https://www.kleyntrucks.com/truck/add-facet-value/field/imprp0/from/2005")

response = Net::HTTP.get_response(uri)

File.open("/home/kirti/input.txt",'w') do |file|
  file.puts response.body
end

And that's the main problem. Why I am not getting correct response as 
showing firebug network tab ?

-- 
Posted via http://www.ruby-forum.com/.