Quantcast
Channel: support.portswigger.net :: Burp Extensions
Viewing all articles
Browse latest Browse all 115

buildParameter not working

$
0
0
I built the HttpRequest using buildHttpMessage method and trying to add Cookie and Body param using LegacyBurpExtender.getInstance().getHelpers().buildParameter and addParameter and updateParameter methods and it is not working. Below is the code snippet, buildRequest = helpers.buildHttpMessage(headers,bodyObject.toString().getBytes()); IParameter testParam = helpers.buildParameter("test","testing",PARAM_BODY); buildRequest = helpers.updateParameter(buildRequest, testParam); String requestString = LegacyBurpExtender.getInstance().getHelpers().bytesToString(buildRequest); When I convert bytes to string I dont see new body param. I tried with update Param as well.

Viewing all articles
Browse latest Browse all 115

Trending Articles