From: Mario Ruiz Date: 2009-05-20T22:55:02+09:00 Subject: Re: html method on watir don't return the real html Since I think it's impossible to get the real html I'm trying to do it using net/http library. In my case I need first to login the user onto the webpage and then go to the pages I want to get the html. This is what I'm doing... but it seems to me the user can't login: require 'net/http' require 'activesupport' server="myserver.com" port=80 http = Net::HTTP.new(server, port) http.start() data={":loginName=>"myLoginName", :password=>"myPassord" } resp,data=http.post("/login.do",data.to_query) if resp.code=="200" then headers={ "Cookie"=>resp["set-cookie"].to_s() } end resp,data=http.get('/MyAccount.do',headers) html=data http.finish() Any idea??? Thanks. Mario Ruiz wrote: > Hi, > I'm using watir to get the html of a page in order to verify every > single page on w3c.org but what I get with watir is something like: > xmlns="http://www.w3.org/1999/xhtml">Certus Games -- Posted via http://www.ruby-forum.com/.