A tiny shellscript wrapper around Charles to quickly record http traffic to a .har
file from the shell. (No need to open Charles GUI).
- fully configure charles in the GUI (i.e. enable SSL, etc)
- in the GUI, enable the webinterface and allow anonymous access
- in the script change the path to the
Charles
executable (CHARLES=<path>
)
- (make sure no other Charles instance is running)
- start
charlesrec
to start recording - press
CTRL + C
to stop recording - the recording will be saved in the same dir to a file
charles_<timestamp>_<random>.har