When some thing work for some servers and not for others, it probably is how they are configured.
In this case, it happens that Google no longer serves http but https, in a different port. The 302 is a code (google for "Http code") that instructs the client (the web browser or, in this case, your program), to try to connect to the alternate direction.
Go to your browser and type in the URL http://www.google.com
, you will see how you will be redirected to https://www.google.com
(or maybe a regional variation).
The important thing to learn from this is the meaning of the HTTP codes (at least the most usual -200
, 302
, 401
, 404
, 500
-)