method not implemented
invalid method in request sportszone.com
Tom
I think you have mistyped something or left out some line in the code. Otherwise the mistake/error may be in the book example itself. Things would become clearer only by understanding the context/explanation given in the book, pertaining to the code.
I think I can explain the error message. You are opening a socket to an http server.
The methods that an http server recognizes are GET, POST, HEAD etc. (read the http protocol). However, if you read your example carefully, in the socket that you have opened, you are only passing the
string "sportszone.com", but sportszone.com is NOT any method of http. It is for this reason that you are receiving the response from the http server
method not implemented
invalid method in request sportszone.com
In fact either because of mistake in the book, or mistake in your copying, some line may have been left out which prefixes the appropriate method (GET/POST etc). The string "sportszone.com" has then to be appended as a parameter to some GET/POST request.