You need to build it yourself;
echo $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
You can also use $_SERVER['HTTPS']
to detect if HTTP or HTTPS.
I recommend using $_SERVER['REQUEST_URI']
as this is exactly what the user is looking for, before any rewrites or anything else, and includes GET variables