MCPcopy Create free account
hub / github.com/bcvgh/daydayEXP / get

Method get

src/main/java/com/bcvgh/utils/HttpTools.java:48–71  ·  view source on GitHub ↗
(String url, HashMap<String, ?> headers, String encoding)

Source from the content-addressed store, hash-verified

46 }
47
48 public static Response get(String url, HashMap<String, ?> headers, String encoding) {
49 Response response = new Response(0, (String)null, (String)null, (String)null);
50
51 try {
52 HttpURLConnection conn = getCoon(url);
53 conn.setRequestMethod("GET");
54 Iterator var4 = headers.keySet().iterator();
55
56 while(var4.hasNext()) {
57 String key = (String)var4.next();
58 conn.setRequestProperty(key, (String)headers.get(key));
59 }
60
61 response = getResponse(conn, encoding);
62 } catch (SocketTimeoutException var6) {
63 response.setError("连接超时!");
64 } catch (IOException var7) {
65 LOGGER.debug(var7.getMessage());
66 response.setError(var7.getMessage());
67 } catch (KeyManagementException | NoSuchProviderException | NoSuchAlgorithmException var8) {
68 response.setError(var8.getMessage());
69 }
70 return response;
71 }
72
73// public static Response post(String url, String postString, HashMap<String, ?> headers, String encoding) {
74// Response response = new Response(0, (String)null, (String)null, (String)null);

Callers 15

teeteMethod · 0.95
getFilesMethod · 0.95
verifyUrlMethod · 0.95
getPocConfigMethod · 0.95
getDirsMethod · 0.95
getContentMethod · 0.95
getPocsMethod · 0.95
getDnsLogMethod · 0.95
checkVulMethod · 0.95
exploitVulMethod · 0.95
addMethod · 0.80
postMethod · 0.80

Calls 3

getCoonMethod · 0.95
getResponseMethod · 0.95
setErrorMethod · 0.95

Tested by 3

teeteMethod · 0.76
getFilesMethod · 0.76
addMethod · 0.64