6

Is there a way to use Wireshark or some other freeware to get an outcome like one gets when using Charles' Map Local capability?

The way it works in Charles is that you can specify a set of files/folders which are replaced with files from your local disk, anytime your browser requests the specified file(s).

This is super handy for working on complex websites with barriers to getting your changes into source-control, or where you are not allowed to push files onto a staging server during development.

Randy L
  • 186

3 Answers3

6

If you are looking for an open-source solution, then Privoxy might be a solution.

Privoxy can do redirect actions and much more.
These examples were taken from the manual :

# Replace example.com's style sheet with another one
{ +redirect{http://localhost/example.com.css} }
example.com/stylesheet\.css$

# Redirect remote requests for this manual
# to the local version delivered by Privoxy
{+redirect{s@^http://www@http://config@}}
www.privoxy.org/user-manual/
harrymc
  • 498,455
1

I would look at tamper which uses the popular Python library mitmproxy.

It did not work for me, but the code is open source so you can probably get it working if you put in the time.

0

Since asking this question, I have found out that you can do this with Fiddler. This is not strictly an answer, I was asking for something Open Source, and AFAIK Fiddler is not open source.

I'm still holding out for some other easy way to do this, but for now this seems to be the answser. No.

Randy L
  • 186