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

How to pass URL with headers to Burp REST API to execute POST /scan

Vitaliy | Last updated: Jun 14, 2021 11:36PM UTC

Hi, Could you please advise is it possible to pass URL with headers to Burp REST API to execute POST /scan? If yes - could you please provide example. Thank you

Michelle, PortSwigger Agent | Last updated: Jun 15, 2021 01:21PM UTC

Thanks for your message. Can you tell us a bit more about the scenario and the headers you're wanting to use? If you'd rather share this directly, feel free to send an email to support@portswigger.net.

vitaliy | Last updated: Jun 15, 2021 07:09PM UTC

I want to send to scan via Burp API specific URL which doesn't work without specific headers. Here is example of cURL code snippet: curl --location --request GET 'https://myurltoscan.com' \ --header 'siteId: XX' \ --header 'x-transaction-id: 2d56ddbc-47fc-43bd-8691-fdec333f2fca' \ --header 'locale: en_CA' \ --header 'Cookie: se_gr_exp=1624563034' \ My question is how to send to scan the specified above URL with headers via Burp API? Without these headers resource rejects all requests. So, please advise how to add headers to the following request: curl -vgw "\n" -X POST 'http://localhost:1337/v0.1/scan' -d '{"urls":["https://myurltoscan.com"]}'

Michelle, PortSwigger Agent | Last updated: Jun 16, 2021 02:11PM UTC