I have a simple test PHP page:
<?php
echo $_SERVER['HTTP_HOST'] . '<br/>';
echo $_SERVER['REQUEST_URI'];
?>
When I access this page with a browser (I've tested chrome, and links) it gives me the output I'm expecting:
10.1.25.222
/test.php
But when I access this with curl 10.1.25.222/test.php
:
10.1.25.222<br/>HTTP://10.1.25.222/test.php
Giving me the HTTP_HOST
I'm expecting, but not the REQUEST_URI
I'm expecting