This commit is contained in:
Looly 2023-09-21 11:37:56 +08:00
parent 6d2d57e34b
commit 01cb9bdd26

View File

@ -1,10 +1,21 @@
package cn.hutool.http;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.lang.Console;
import org.junit.Ignore;
import org.junit.Test;
public class Issue3314Test {
@Test
@Ignore
public void postTest() {
String url = "https://hutool.cn/test/getList";
final String body = HttpRequest.get(url)
.setRest(true)
.body(FileUtil.readBytes("d:/test/3314.xlsx"))
.execute()
.body();
Console.log(body);
}
}