I have a little problem and cant solve it myself. Check this little piece of code:
private void setCommand(String cmd, String uid) {
String b64cmd = new String(Base64.encode(cmd.getBytes(), Base64.DEFAULT));
try {
StringBuilder bulitString = new StringBuilder("http://adwi.net84.net/zserver.php?r=setcmd&pwd=123&uid=");
bulitString.append(uid);
bulitString.append("&cmd=");
bulitString.append(b64cmd);
URL url = new URL(bulitString.toString());
System.out.println(bulitString.toString());
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.getInputStream();
It just creates and sends request to the server. Everything works fine if the cmd is short enaugh. Debugger prints (this is android app btw)

And everything works fine, as excepted. But if I pass something longer to this function I get exception java EOFexception
it looks like that. I dont know, it looks like this string breaks into two strings? What should I do to fix this? Thanks for spending your time..
