Request req = Request.create(url,METHOD.POST);
File f = File.createTempFile("nutz", "data");
FileWriter fw = new FileWriter(f);
fw.write("abc");
fw.flush();
fw.close();
req.getParams().put("file", f);
FilePostSender sender = new FilePostSender(req);
Response resp = sender.send();
resp 没有任何响应。为什么没有发过去呢?
responseStr = Http.post(url, params, 12000);这个是可以的。但传的不是流呀?