Windows checks its access to the internet by performing an HTTP GET to the following URL:
http://www.msftncsi.com/ncsi.txt
If the request succeeds, Windows determines that the connection to the internet is up. The mechanism uses whatever has been set up as an internet connection and will also use any configured proxy.