Exception in thread "main" java.net.ProtocolException: Invalid HTTP method: get

错误原因:setRequestMethod("get");

解决办法:这个方法中的get应该改为GET

猜你喜欢

转载自blog.csdn.net/shuoshuo_12345/article/details/80138286