Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to grab the uploaded file from charles network utility

I'l like to save and extract the file part from a multipart http upload recorded by Charles network utility on the mac. Is there a way to do this? For instance, I can see the jpeg files contents in the request text, but if I try to copy and paste that into a file, it is an invalid file. I'd like to simply just save to disk the file that was captured.

like image 219
MonkeyBonkey Avatar asked Jul 22 '13 22:07

MonkeyBonkey


People also ask

How to use Charles Proxy on Mac?

Open Settings, tap Wi-Fi and verify you're connected to the same network as your computer. Then, tap the ⓘ button next to your Wi-Fi network. Scroll down to the HTTP Proxy section, select Configure Proxy and then tap Manual. Enter your Mac's IP address for Server and the Charles HTTP Proxy port number for Port.


1 Answers

Using Charles 4.1.3:

  • Right-click request in Structure pane
  • Select "Export..."
  • Select Format "HTTP Trace File (.trace)", name the file
  • Open the file in a text editor, such as TextMate. When asked for encoding, Western - ISO Latin 1 is just fine
  • Remove all text from the start that contains header info, up until and including the line that says something like "Request-Body:<<--EOF-1498740958503-"
  • Scroll all the way down, and remove all text starting at the line that looks like this: "--EOF-1498741139055-"
  • Save
  • Preview will already be an image. When renamed to the actual format, more information, such as image size, will become available
like image 117
StephanBezoen Avatar answered Oct 20 '22 16:10

StephanBezoen