java socket + http client app