This commit is contained in:
Looly
2022-03-29 23:57:03 +08:00
parent 64fdf75fc6
commit 0d9185a98d
3 changed files with 15 additions and 2 deletions

View File

@@ -180,4 +180,14 @@ public class HttpRequestTest {
GlobalInterceptor.INSTANCE.addInterceptor(Console::log);
HttpUtil.createGet("https://hutool.cn").execute();
}
@Test
@Ignore
public void getWithFormTest(){
String url = "https://postman-echo.com/get";
final Map<String, Object> map = new HashMap<>();
map.put("aaa", "application+1@qqq.com");
HttpRequest request =HttpUtil.createGet(url).form(map);
Console.log(request.execute().body());
}
}