I run a server with apache 1.3 and php 5.
Yesterday I notice that sometimes the HTTP_HOST server variable has a
comma separated list in it.
Let's say my domain name is: www.mydomain.com
Usually the HTTP_HOST value is of course "www.mydomain.c om".
But sometimes it is: "www.mydomain.c om, www.mydomain.co m".
Is that supposed to be a correct behabior??
And if it is, what would be the meaning of such a list of hosts??
And If this is a correct behavior, then that means we cannot longer
trust the HTTP_HOST value to make a full absolute URL. Like when you
do:
"http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ;
Regards, and thanks by your replies.
Yesterday I notice that sometimes the HTTP_HOST server variable has a
comma separated list in it.
Let's say my domain name is: www.mydomain.com
Usually the HTTP_HOST value is of course "www.mydomain.c om".
But sometimes it is: "www.mydomain.c om, www.mydomain.co m".
Is that supposed to be a correct behabior??
And if it is, what would be the meaning of such a list of hosts??
And If this is a correct behavior, then that means we cannot longer
trust the HTTP_HOST value to make a full absolute URL. Like when you
do:
"http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ;
Regards, and thanks by your replies.
Comment