Re: [wtr-general] Passing in a host header?
On Thu, Jan 9, 2014 at 11:20 AM, Stephen Nelson-Smith sanel...@gmail.com wrote: 1) The browser goto method just takes a string. I can't see how to do anything as clever as pass HTTP headers. This is how to do it with PhantomJS: http://stackoverflow.com/a/20568647/17469 I am not sure if it is possible with other browsers. Željko -- https://leanpub.com/watirbook -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[wtr-general] Passing in a host header?
The requirement: The website under test must be called with a specific name. In DNS that will resolve to something other than the machine against which I am testing. If I hit the IP I will get the default vhost, not the website I wish to test. Suggested solutions: 1) Make Watir pass in a host header alongside an IP 2) Stick a host entry on the machine where Watir runs Issues: 1) The browser goto method just takes a string. I can't see how to do anything as clever as pass HTTP headers. 2) Adding a host entry just seems a bit crap. Suggestions? Ideas? Solutions? -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.