setting own "Host: " header?
|
08-04-2012, 01:01 AM
Post: #1
|
|||
|
|||
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.com" http://1.1.1.1/some/url wget -O /dev/null --header="Host: example.com" http://2.2.2.2/some/url to fetch the same website (virtual host) from two different servers. |
|||
08-04-2012, 01:09 AM
Post: #2
|
|||
|
|||
RE: setting own "Host: " header?
You need to use a script: https://sites.google.com/a/webpagetest.o.../scripting
Something like: Code: setDns example.com 1.1.1.1 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)