How to get connection's outputStream and why it says that I don't use setEntity method? (line 36)