try this.String ReqToGW = "GET / status?password=bar HTTP/1.0\n\n";
...
toGW.print(ReqToGW);
toGW.flush();
...
int result = fromGW.read();grin
...
toGW.print(ReqToGW);
toGW.flush();
...
int result = fromGW.read();grin
toGW.println(ReqToGW);
toGW.flush();
所以必须在String尾巴上自己添上