Any help appreciated... Please let know. Thanks again, Madu Madu Nar wrote: > 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/.