The full URL to a page comes in three parts: The domain name, the path to the file then the filename, and the QueryString. For example, take the URL http://www.example.com/example/page.asp?name=Bob. The three parts of this are:
The domain name: www.example.com
The path to the page: /example/page.asp
The QueryString: name=Bob
So how do you find it all out with your own scripts?