question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to copy the response to the clipboard?

See original GitHub issue

In v2 of mitmproxy, I was able to use key binding C to copy the response body into my clipboard. This option does not seem to exist anymore in v4. What was it replaced with?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
kajojifycommented, May 27, 2018

@gajus It was replaced with cut.clip command. This command is bound to ctrl L (lowercase L). It is universal - you can copy any part of a flow. But it isn’t well-documented for some reasons. This is the full list of flow parts you can copy into your clipboard -> https://github.com/mitmproxy/mitmproxy/blob/master/mitmproxy/types.py#L243-L277

So, the plan for your case is:

  1. Press Ctrl l.
  2. Input cut.clip @focus response.raw_content -> Enter.

We had many users’ reports about inconvinience of this approach. So, maybe it will be replaced in v5.0.

By the way, mitmproxy has very nice forum exactly for such questions 😉 So, it is recommended to ask there not development-related questions.

Best wishes.

0reactions
M25Acommented, Apr 7, 2020

I am trying to use mitmproxy for importing flowreader in python 3 (Ubuntu). I am getting ImportError: cannot import name ‘flowreader’ by executing the following lines of code.

from mitmproxy.flow import FlowReader

I tried to install flow reader by “pip3 install FlowReader” but that failed. After searching I haven’t got any clue on this issue. Please guide what can I do to solve it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Copy Text to the Clipboard with JavaScript
To copy text with the new Clipboard API, you will use the asynchronous writeText() method. This method accepts only one parameter - the...
Read more >
How to Copy to Clipboard in JavaScript with the Clipboard API
Let's start out with copying the text onto the clipboard. We've briefly seen this in the first example, and it doesn't really get...
Read more >
Copy response.text() from fetch api in Chrome DevTools to the ...
You need to get response text and then copy it to the clipboard using another function: fetch('/readme.txt').then( response ...
Read more >
Using the Clipboard - Win32 apps | Microsoft Learn
This copy is used to render data on request. // It is freed in response to the WM_DESTROYCLIPBOARD // message.
Read more >
Chrome DevTools: Copy a network response into your clipboard
How to use this feature · Make a Network Panel recording · Right click on a resource · Select Copy > Copy response....
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