HttpURLConnection 在调用connection.setDoOutput(true)以后会自动把提交方式改成POST。而后调用方法的时候有可能会出现这种状况blog
在调用get的时候设置为connection.setDoOutput(false)就行get