http://www.example.com?foo
What's the term for the foo
part of the URL?
It's the query, or sometimes the query string.
To pinch a useful diagram from the URI RFC:
foo://example.com:8042/over/there?name=ferret#nose
\_/ \______________/\_________/ \_________/ \__/
| | | | |
scheme authority path query fragment