简介:Java后台模拟post请求,发送参数以及上传文件等方式,适用有些公众API接口的调用.
需要知道服务器接口地址及本地文件地址,如:String filepath = "F:\\2.png"; String urlStr = "http://localhost:8080/wxchar_menu/upload";
参考1:http://blog.csdn.net/u014201191/article/details/46597563
简介:Java后台模拟post请求,发送参数以及上传文件等方式,适用有些公众API接口的调用.
需要知道服务器接口地址及本地文件地址,如:String filepath = "F:\\2.png"; String urlStr = "http://localhost:8080/wxchar_menu/upload";
参考1:http://blog.csdn.net/u014201191/article/details/46597563