The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

[python] adding a custom header and send JSON in post request.

reconnect | Last updated: Sep 17, 2017 07:28PM UTC

Hello team I wanted to know how to add custom header and send JSON in post request in jython. here is my basic code def sendRequest(self,data): host="requestb.in" url=URL("https://requestb.in/q6v4xrq6") req=self._helpers.buildHttpRequest(url) encode=self._helpers.urlEncode(data) body=self._helpers.buildParameter("body", encode, IParameter.PARAM_BODY); req=self._helpers.addParameter(req,body) resp=self.callbacks.makeHttpRequest(host,443,1,req) print self._helpers.bytesToString(resp)

PortSwigger Agent | Last updated: Sep 18, 2017 10:38AM UTC