httptoolkit icon indicating copy to clipboard operation
httptoolkit copied to clipboard

Selector to switch between multiple upstream proxies

Open LaKrue opened this issue 2 years ago • 2 comments

I use many upstream proxies and change them often. It would be awesome to have a prominent dropdown somewhere to choose the current/no upstream proxy, maybe aliased. While dropdown would be awesome, having a list in the settings would work too :)

Does this affect you too? Click below and add a :+1: to vote for this and help decide where HTTP Toolkit goes next, or go vote on the other most popular ideas so far.

LaKrue avatar Dec 19 '23 14:12 LaKrue

Interesting idea, thanks! Doing this well would take a bit of UX & design work, but it wouldn't be especially complicated internally. I think it would probably be something for the Settings page rather than elsewhere, since I imagine for most users it's not a high priority.

I'll keep an eye on this for votes, and look for good opportunity to dig into this soon if there's interest. PRs also welcome if you're interested in working on this yourself (the code is here) - note that HTTP Toolkit Pro is totally free for contributors.

Alternatively, if this is important to you and you want a quick fix, you could probably hack together your own switcher by setting up a Mockttp proxy in front of HTTP Toolkit as the upstream proxy, and then scripting your own logic within that to switch Mockttp's upstream proxy dynamically, e.g. with a CLI curses selector kind of thing to do it manually, or with some kind of custom rules depending on the type of traffic, etc. There's a getting started guide for Mockttp here: https://httptoolkit.com/blog/javascript-mitm-proxy-mockttp/

pimterry avatar Dec 19 '23 14:12 pimterry

Great alternative suggestions, thanks. Im totally not in UI/UX while I might be able to create a PR. I kind of got something like your third solution in place, but a dropdown would be so perfectly comfortable :D Lets see if its wanted or my pain fades away soon.

LaKrue avatar Dec 19 '23 14:12 LaKrue