Customizable cURL command (Network Tab -> Copy as cURL address)

Hello,

the “Copy network request as cURL address” function is already very useful, but could be even better when the cURL command could be a little customized.

I am thinking of:

  • A customizable template on how the command looks (placeholders for the URL and headers that firefox sets and then you can add custom parameters)
  • A list of ignored headers, that should not be added to the curl request

For example there could be config keys in the about:config for that:

devtools.netmonitor.curl.cmd_template = "curl %URL% %HEADERS% --compressed"
devtools.netmonitor.curl.ignored_headers = "pragma,referer,user-agent"

Would be great if that could be done!