synchronized the socket-stream problem and did the GET command... tested it and it seems to work for me