From: Madu Nar Date: 2006-09-29T15:07:02+09:00 Subject: How to get Response URL value - help requested Hi, I have a problem here. I have a ruby code that opens Google, types "book stores" and clicks on "Search" button. # Code Snippet Begins here require 'net/http' require 'uri' require 'watir' term="book stores" url1 = 'http://www.google.com' ie = Watir::IE.start(url1) ie.text_field(:name, "q").set(term) ie.button(:name, "btnG").click # Code Snippet Ends here Now I need to obtain the value of the response URL generated by this search and assign it to a variable. [ i.e. http://www.google.com/search?hl=en&lr=&q=book+stores] How do I read the HTTP Header information for the "location" attribute? Any help is greatly appreciated. Thanks, Madu -- Posted via http://www.ruby-forum.com/.