Burp Suite User Forum

Create new post

Use long/verbose parameters for curl command

Pedro | Last updated: Jul 07, 2017 01:22PM UTC

At the moment the tool generates the following curl command: curl -i -s -k -X $'GET' $'https://10.10.10.10/' If using the long version of the parameters it will be presented as: curl --include --silent --insecure --request $'GET' $'https://10.10.10.10/' Using the long version of the commands improve readability and makes more clear which options are being used by the tool. This might help developers and other users not familiar with obscure one letter parameters to understand what the command is doing as it's self-documented.

PortSwigger Agent | Last updated: Jul 10, 2017 07:57AM UTC

That's an interesting suggestion. The "copy as CURL command" was originally intended for power users who prefer brevity. We'll have a discussion internally about potentially changing the behavior. In the interim, this is something you could implement as an extension. There is already a "Copy as Python Requests" extension which you could look at.

Burp User | Last updated: Jul 18, 2017 08:03PM UTC

A power user could shorten the command if needed. If the goal is to easily share with non-infosec people (ex: developpers), in order to get them to reproduce a specific behavior, I'd agree with the suggestion

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.