I am using the code in the following website (http://www.adp-gmbh.ch/win/misc/sockets.html#test) that is a ready Socket and Client class for connecting to a website. But in the Client.cpp code, if I put a query for Google instead of the host name in the send() method, I get a bad response.