Reputation: 317
I am trying to inspect some outgoing https requests from a command line utility running in the OSX terminal but they don't seem to show up in tools like Charles or Fiddler. Can anyone suggest a tool that does this?
Upvotes: 3
Views: 1996
Reputation: 13286
Try HTTP Toolkit. It's an open-source project I've been working on. It has a button that opens a terminal window, where every command run in that terminal is automatically intercepted.
This isn't 100% bulletproof (your CLI tool must either correctly follow the standard conventions for proxy configuration, or use one of the languages that the tool can manually redirect) but it should work for 95+% of cases!
If you're interested in how this works so you can do similar things manually: it's basically a lot of environment variables to set default configuration, and a few overrides into your PATH/PYTHONPATH/etc, but all set just for that one intercepted terminal.
Upvotes: 2