setting own "Host: " header?

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.comhttp://1.1.1.1/some/url

wget -O /dev/null --header=“Host: example.comhttp://2.2.2.2/some/url

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

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

Something like:

setDns	example.com	1.1.1.1
navigate	example.com