Current time: 12-16-2017, 05:03 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.
Find all posts by this user
Quote this message in a reply
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
navigate    example.com
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)