MCPcopy Create free account
hub / github.com/f0ng/autoDecoder / sendPostnew

Method sendPostnew

src/burp/BurpExtender.java:715–731  ·  view source on GitHub ↗
(String url, String param)

Source from the content-addressed store, hash-verified

713 }
714
715 public static String sendPostnew(String url, String param) throws IOException {
716 OkHttpClient okHttpClient = new OkHttpClient();
717
718 RequestBody requestBody = new FormBody.Builder()
719 .add("dataBody",param)
720 .build();
721
722
723 Request request = new Request.Builder()
724 .addHeader("content-type", "application/x-www-form-urlencoded")
725 .url(url)
726 .post(requestBody)
727 .build();
728
729 String result = okHttpClient.newCall(request).execute().body().string();
730 return result;
731 }
732
733 /***
734 * 增加是请求还是响应的参数

Callers 6

processHttpMessageMethod · 0.95
TestDecodeMethod · 0.80
TestEncodeMethod · 0.80
DecodeMethod · 0.80
EncodeMethod · 0.80
setMessageMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestDecodeMethod · 0.64
TestEncodeMethod · 0.64