关于java.io.IOException: Server returned HTTP response code: 400 for URL报错和string.getBytes()字符集
400 请求出错:由于语法格式有误,服务器无法理解此请求总论:这种错误应该会有很多原因,这里指出的是因为字符集编码的原因导致400,主要代码:向服务器发送请求传输json参数用的是out.write( ...