I would apreciate any help on how to modify or implement something new to make the code compatible for ver. 1.7 as Im not a former programmerAs noted it isn't a valid code. Just to verify I checked the spec for HTTP/1.1 and 1.0 to see if it was conceivable that it could have been valid and nothing I found suggests it was ever a valid value.
Status variable (int status = connection.getResponseCode()) is always -1 as seen by the console outputFrom the documentation for HttpURLConnection.getResponseCode()
but with Java 1.6 the Client-Server communication works fine.I suggest that you get a tool that captures IP packets, run it on your system and see what the actual response is that you are getting back.