public class Request extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Request.UserAgentType |
| 构造器和说明 |
|---|
Request() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getRandomChinaIp()
获取随机中国大陆ip
|
static String |
getUserAgent(Request.UserAgentType type)
根据UserAgent类型获取UserAgent
|
static org.jsoup.Connection.Response |
sendGet(String url,
Map<String,String> headers,
Map<String,String> cookies) |
static org.jsoup.Connection.Response |
sendPost(String url,
Map<String,String> data) |
static org.jsoup.Connection.Response |
sendPost(String url,
Map<String,String> data,
Map<String,String> header,
Map<String,String> cookie) |
public static String getRandomChinaIp()
public static String getUserAgent(Request.UserAgentType type)
type - 类型public static org.jsoup.Connection.Response sendPost(String url, Map<String,String> data) throws IOException
IOExceptionpublic static org.jsoup.Connection.Response sendPost(String url, Map<String,String> data, Map<String,String> header, Map<String,String> cookie) throws IOException
IOExceptionpublic static org.jsoup.Connection.Response sendGet(String url, Map<String,String> headers, Map<String,String> cookies) throws IOException
IOExceptionCopyright © 2021. All rights reserved.