mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix bugs
This commit is contained in:
19
hutool-http/src/test/java/cn/hutool/http/IssueI5TPSYTest.java
Executable file
19
hutool-http/src/test/java/cn/hutool/http/IssueI5TPSYTest.java
Executable file
@@ -0,0 +1,19 @@
|
||||
package cn.hutool.http;
|
||||
|
||||
import cn.hutool.core.lang.Console;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.net.HttpCookie;
|
||||
|
||||
public class IssueI5TPSYTest {
|
||||
@Test
|
||||
@Ignore
|
||||
public void redirectTest() {
|
||||
final String url = "https://bsxt.gdzwfw.gov.cn/UnifiedReporting/auth/newIndex";
|
||||
final HttpResponse res = HttpUtil.createGet(url).setFollowRedirects(true)
|
||||
.cookie(new HttpCookie("iPlanetDirectoryPro", "123"))
|
||||
.execute();
|
||||
Console.log(res.body());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user