Code freezes if dsl line is down

Why is it not valid ?

You've already connected to the server. The protocol to use is known. So, the "http://" part doesn't belong in the GET request, nor does the server name.