[mitmweb] ft request: copy as curl

See original GitHub issue

Problem Description

There’s many a time (ok this just happened once but I think others may find this useful) where I want to copy a request in the format of a curl command for replay later.

Proposal

A simple button to ‘copy as curl’ added somewhere in the GUI. I’m not sure how this would work in mitmproxy (if at all).

I would be willing to look into implementing this as I could see myself using it in the future (if this is in the spirit of the project). Depending on how requests are retained, this could be a little difficult (I admit I have little experience with the codebase). I opened this issue so that others could share how they think it should be implemented - any general ideas or implementation advice would be much appreciated!

Alternatives

copy relevant details and translate to a curl command by hand

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
mhilscommented, Aug 12, 2021

@Prinzhorn: yes, thanks - I’m aware. It’s evolved a bit 😉

image

1reaction
mhilscommented, Aug 23, 2021

This is available on main and in the development snapshots now (https://mitmproxy.org/downloads/#branches/main/). 😃🍰

Read more comments on GitHub >

github_iconTop Results From Across the Web

allow mitmweb to export request as cURL command #3457
It looks like it is only possible to export a request as cURL command in mitmproxy command-line version and not in mitmweb.
Read more >
Export curl from mitmproxy - How Do I Test That?
enter w to enter export mode; enter export.clip curl @focus to copy curl request to clipboard. It works, but I'm still going to...
Read more >
Extract requests from flow file as CURL commands
Hi! Is there a possibilty to extract all HTTP requests from a flow file as (separate) CURL commands?
Read more >
CURL and Requests copy addons - help - mitmproxy
Could you kindly advise me where to find addons for Copying and Exporting flows as cURL commands and Python Requests code?
Read more >
Copy as - Proxyman Documentation
Copy content from Request / Response. ... Copy cURL: Generate cURL command, which includes headers, cookies, query, and body. Copy Cell Value: Copy...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found