Hi, I am new to httpwatch and watir, could anyone please provide me a sample code in order to get the redirect type(302 or 200 ...) using http watch in watir.
Plese help on the below code require 'win32ole' require 'watir' control = WIN32OLE.new('HttpWatch.Controller') ie = Watir::IE.new plugin = control.ie.Attach(ie.ie) plugin.Clear() plugin.Record() ie.goto("www.google.com") plugin.stop() How do i get the redirect type? From the http trace it shows me 00:45:45.903 0.815 447 408 GET 301 Redirect to: http://www.google.com/ http://google.com/ 00:45:46.721 0.568 451 378 GET 302 Redirect to: http://www.google.co.in/ http://www.google.com/ 00:45:47.292 0.916 372 3083 GET 200 text/html http://www.google.co.in/ 00:45:48.209 0.527 491 195 GET 200 image/png http://www.google.co.in/intl/en_com/images/logo_plain.png 00:45:48.847 0.381 478 195 GET 200 image/png http://www.google.co.in/images/nav_logo3.png 00:45:48.851 0.655 434 195 GET 200 image/x-icon http://www.google.co.in/favicon.ico 00:45:48.853 0.760 453 (0) GET (Cache) text/html http://www.google.co.in/ 00:45:51.847 0.132 464 (0) GET (Cache) image/x-icon http://www.google.co.in/favicon.ico i want to find if it is 301 or 302 or 200 or whatever. Thanks a ton --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---