WebPagetest Forums
setting own "Host: " header? - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Feature Suggestions (/forumdisplay.php?fid=9)
+--- Thread: setting own "Host: " header? (/showthread.php?tid=11511)

setting own "Host: " header? - mangoo - 08-04-2012 01:01 AM

Consider this scenario: I have a server running "example.com" website, which performs rather poorly, which is further confirmed by WPT.

So I determine that the hardware is part of poor performance and order a new server. I copy the website over, make it run, don't change the DNS yet - because I'd like to verify the performance with the WPT.

Unfortunately, since the DNS points to the old site, I'm not able to use the WPT to check the performance of the new server.

Is there a way around this with the WPT?

I.e. with wget, I'd use the following syntax:

wget -O /dev/null --header="Host: example.com"

wget -O /dev/null --header="Host: example.com"

to fetch the same website (virtual host) from two different servers.

RE: setting own "Host: " header? - pmeenan - 08-04-2012 01:09 AM

You need to use a script: https://sites.google.com/a/webpagetest.org/docs/using-webpagetest/scripting

Something like:

setDns    example.com
navigate    example.com