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

Method sendPostnewHeader

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

Source from the content-addressed store, hash-verified

758 }
759
760 public static String[] sendPostnewHeader(String url, String param,String headers) throws IOException {
761 OkHttpClient okHttpClient = new OkHttpClient();
762
763 RequestBody requestBody = new FormBody.Builder()
764 .add("dataBody",param)
765 .add("dataHeaders", headers)
766 .build();
767
768
769 Request request = new Request.Builder()
770 .addHeader("content-type", "application/x-www-form-urlencoded")
771 .url(url)
772 .post(requestBody)
773 .build();
774
775 String result = okHttpClient.newCall(request).execute().body().string();
776 String[] result_list = result.split("\r\n\r\n\r\n\r\n");
777
778 return result_list;
779 }
780
781 /**
782 * 增加是请求还是响应的参数

Callers 4

processHttpMessageMethod · 0.95
TestDecodeMethod · 0.80
TestEncodeMethod · 0.80
setMessageMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestDecodeMethod · 0.64
TestEncodeMethod · 0.64