WebPagetest Forums
Host Mapping - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: General Discussion (/forumdisplay.php?fid=25)
+--- Thread: Host Mapping (/showthread.php?tid=13887)



Host Mapping - daid.mcneil - 08-27-2015 09:38 PM

Hello,

I am trying to perform a test with some host mapping setup but I am having some issues. Having searched the forums I think I should be using the Chromium command line switch host-rules but I am not entirely sure. For example the setup I am using is:

URL: http://www.example.com
Browser: Chrome Browser

Advanced Settings - Chrome Tab:
Command-line: --host-rules="MAP http://www.example.com http://www.otherexample.com"

Each time I try to run the test I receive the same error message:
"Invalid command-line option: "www.otherexample.com""

Have I missed something in syntax or similar in the above?
Is there another method I should be using to perform host mapping?

Any input would be greatly appreciated!

Thanks


RE: Host Mapping - akshayranganath - 10-20-2015 07:02 AM

Are you trying to access site "www.example.com" with the DNS of "www.otherexample.com"? If so, you can just use a scripted test by forcing the DNS of http://www.example.com to http://www.otherexample.com.

setDNSName http://www.example.com http://www.otherexample.com
navigate http://www.example.com